diff options
author | Andreas Färber <afaerber@suse.de> | 2013-06-17 04:09:11 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-06-28 13:25:11 +0200 |
commit | 1a1562f5ea3da17d45d3829e35b5f49da9ec2db5 (patch) | |
tree | f7da6aa385bc31f11e300cb8e9ca3507b2068328 /exec.c | |
parent | 19e3835cffbcae37ade8c3abcc4525895f7b528a (diff) | |
download | qemu-1a1562f5ea3da17d45d3829e35b5f49da9ec2db5.zip |
cpu: Introduce VMSTATE_CPU() macro for CPUState
To be used to embed common CPU state into CPU subclasses.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -330,7 +330,7 @@ static int cpu_common_post_load(void *opaque, int version_id) return 0; } -static const VMStateDescription vmstate_cpu_common = { +const VMStateDescription vmstate_cpu_common = { .name = "cpu_common", .version_id = 1, .minimum_version_id = 1, @@ -342,8 +342,7 @@ static const VMStateDescription vmstate_cpu_common = { VMSTATE_END_OF_LIST() } }; -#else -#define vmstate_cpu_common vmstate_dummy + #endif CPUState *qemu_get_cpu(int index) |