diff mbox

[07/25] vmstate: make microblaze cpus not migrateable

Message ID 4a11e5dc8ecfe78047c3b410a413698569365a5e.1319550280.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela Oct. 25, 2011, 2 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
CC: Edgar E. Iglesias <edgar.iglesias@gmail.com>
---
 target-microblaze/cpu.h     |    2 --
 target-microblaze/machine.c |   15 +++++++--------
 2 files changed, 7 insertions(+), 10 deletions(-)
diff mbox

Patch

diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h
index 3530286..fc5c098 100644
--- a/target-microblaze/cpu.h
+++ b/target-microblaze/cpu.h
@@ -287,8 +287,6 @@  enum {
 #define cpu_gen_code cpu_mb_gen_code
 #define cpu_signal_handler cpu_mb_signal_handler

-#define CPU_SAVE_VERSION 1
-
 /* MMU modes definitions */
 #define MMU_MODE0_SUFFIX _nommu
 #define MMU_MODE1_SUFFIX _kernel
diff --git a/target-microblaze/machine.c b/target-microblaze/machine.c
index 1be1c35..86b6fe9 100644
--- a/target-microblaze/machine.c
+++ b/target-microblaze/machine.c
@@ -1,11 +1,10 @@ 
+
 #include "hw/hw.h"
-#include "hw/boards.h"

-void cpu_save(QEMUFile *f, void *opaque)
-{
-}
+/* To make this architecture migratable, we need to define cpu state
+   here.  Other things need to be done elsewhere */

-int cpu_load(QEMUFile *f, void *opaque, int version_id)
-{
-    return 0;
-}
+const VMStateDescription vmstate_cpu = {
+    .name = "cpu",
+    .unmigratable = 1,
+};