[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 06/36] vmstate: make microblaze cpus not migrateable
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 06/36] vmstate: make microblaze cpus not migrateable |
Date: |
Mon, 19 Mar 2012 23:57:34 +0100 |
Signed-off-by: Juan Quintela <address@hidden>
---
target-microblaze/cpu.h | 2 --
target-microblaze/machine.c | 26 ++++++++++++++++++--------
2 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h
index 33b23c2..c7ea041 100644
--- a/target-microblaze/cpu.h
+++ b/target-microblaze/cpu.h
@@ -294,8 +294,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..13abf6a 100644
--- a/target-microblaze/machine.c
+++ b/target-microblaze/machine.c
@@ -1,11 +1,21 @@
+/*
+ * Migration support for microblaze cpus
+ *
+ * Copyright (C) 2011 Red Hat, Inc.
+ *
+ * Author(s):
+ * Juan Quintela <address@hidden>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or
+ * later. See the COPYING file in the top-level directory.
+ */
+
#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,
+};
--
1.7.7.6
- Re: [Qemu-devel] [PATCH 08/36] vmstate: machine.c is only compiled for !CONFIG_USER_ONLY, (continued)
- [Qemu-devel] [PATCH 14/36] vmstate: introduce VMSTATE_VARRAY_MULTIPLY, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 03/36] vmstate: unicore32 don't support cpu migration, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 15/36] vmstate: define vmstate_info_uinttls, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 18/36] mips_fulong2e: cpu vmstate already registered in cpu_exec_init, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 07/36] vmstate: port cris cpu to vmstate, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 19/36] mips: make mvp an embedded struct instead of a pointer, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 11/36] vmstate: introduce CPU_DoubleU arrays, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 06/36] vmstate: make microblaze cpus not migrateable,
Juan Quintela <=
- [Qemu-devel] [PATCH 16/36] vmstate: port sparc cpu, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 27/36] vmstate: remove unneeded includes from target-*/machine.c, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 26/36] vmstate: fix vmstate formating for i386, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 01/36] vmstate: Simplify test for CPU_SAVE_VERSION, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 22/36] vmstate: port mips cpu, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 21/36] mips: bump migration version to 4, Juan Quintela, 2012/03/19
- [Qemu-devel] [PATCH 31/36] vmstate: Add copyright info for cris processor, Juan Quintela, 2012/03/19