[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/28] vmstate: Simplify test for CPU_SAVE_VERSION
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 02/28] vmstate: Simplify test for CPU_SAVE_VERSION |
Date: |
Wed, 26 Oct 2011 22:16:16 +0200 |
Some cpu's definitions define CPU_SAVE_VERSION, others not, but they have
defined cpu_save/load.
Signed-off-by: Juan Quintela <address@hidden>
---
exec.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/exec.c b/exec.c
index 9dc4edb..165cfe8 100644
--- a/exec.c
+++ b/exec.c
@@ -591,7 +591,7 @@ void cpu_exec_init_all(void)
#endif
}
-#if defined(CPU_SAVE_VERSION) && !defined(CONFIG_USER_ONLY)
+#if !defined(CONFIG_USER_ONLY)
static int cpu_common_post_load(void *opaque, int version_id)
{
@@ -658,11 +658,13 @@ void cpu_exec_init(CPUState *env)
#if defined(CONFIG_USER_ONLY)
cpu_list_unlock();
#endif
-#if defined(CPU_SAVE_VERSION) && !defined(CONFIG_USER_ONLY)
+#if !defined(CONFIG_USER_ONLY)
vmstate_register(NULL, cpu_index, &vmstate_cpu_common, env);
+#if defined(CPU_SAVE_VERSION)
register_savevm(NULL, "cpu", cpu_index, CPU_SAVE_VERSION,
cpu_save, cpu_load, env);
#endif
+#endif
}
/* Allocate a new translation block. Flush the translation buffer if
--
1.7.6.4
- [Qemu-devel] [PATCH v2 00/28] VMState port of all cpus, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 01/28] vmstate: Fix VMSTATE_VARRAY_UINT32, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 02/28] vmstate: Simplify test for CPU_SAVE_VERSION,
Juan Quintela <=
- [Qemu-devel] [PATCH 03/28] vmstate: make all architectures export a way to migrate cpu's, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 04/28] vmstate: unicore32 don't support cpu migration, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 05/28] vmstate: use new cpu style for x86, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 06/28] vmstate: use new style for lm32 cpus, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 07/28] vmstate: make microblaze cpus not migrateable, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 08/28] vmstate: port cris cpu to vmstate, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 09/28] vmstate: machine.c is only compiled for !CONFIG_USER_ONLY, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 10/28] vmstate: introduce float32 arrays, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 11/28] vmstate: introduce float64 arrays, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 12/28] vmstate: Introduce VMSTATE_STRUCT_VARRAY_INT32_TEST, Juan Quintela, 2011/10/26