[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 05/28] vmstate: use new cpu style for x86
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 05/28] vmstate: use new cpu style for x86 |
Date: |
Wed, 26 Oct 2011 22:16:19 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
target-i386/cpu.h | 2 --
target-i386/machine.c | 12 +-----------
2 files changed, 1 insertions(+), 13 deletions(-)
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index a973f2e..ef6f9f4 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -949,8 +949,6 @@ uint64_t cpu_get_tsc(CPUX86State *env);
#define cpu_list_id x86_cpu_list
#define cpudef_setup x86_cpudef_setup
-#define CPU_SAVE_VERSION 13
-
/* MMU modes definitions */
#define MMU_MODE0_SUFFIX _kernel
#define MMU_MODE1_SUFFIX _user
diff --git a/target-i386/machine.c b/target-i386/machine.c
index 54f5643..0ecbfe9 100644
--- a/target-i386/machine.c
+++ b/target-i386/machine.c
@@ -312,7 +312,7 @@ static const VMStateDescription vmstate_fpop_ip_dp = {
const VMStateDescription vmstate_cpu = {
.name = "cpu",
- .version_id = CPU_SAVE_VERSION,
+ .version_id = 13,
.minimum_version_id = 3,
.minimum_version_id_old = 3,
.pre_save = cpu_pre_save,
@@ -426,13 +426,3 @@ const VMStateDescription vmstate_cpu = {
}
}
};
-
-void cpu_save(QEMUFile *f, void *opaque)
-{
- vmstate_save_state(f, &vmstate_cpu, opaque);
-}
-
-int cpu_load(QEMUFile *f, void *opaque, int version_id)
-{
- return vmstate_load_state(f, &vmstate_cpu, opaque, version_id);
-}
--
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, 2011/10/26
- [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 <=
- [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
- [Qemu-devel] [PATCH 13/28] vmstate: port ppc cpu, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 14/28] vmstate: introduce VMSTATE_VARRAY_MULTIPLY, Juan Quintela, 2011/10/26
- [Qemu-devel] [PATCH 15/28] vmstate: define vmstate_info_uinttls, Juan Quintela, 2011/10/26