From 1a1562f5ea3da17d45d3829e35b5f49da9ec2db5 Mon Sep 17 00:00:00 2001 From: Andreas Färber Date: Mon, 17 Jun 2013 04:09:11 +0200 Subject: cpu: Introduce VMSTATE_CPU() macro for CPUState To be used to embed common CPU state into CPU subclasses. Reviewed-by: Juan Quintela Signed-off-by: Andreas Färber --- exec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index f99041b748..0b172b45a6 100644 --- a/exec.c +++ b/exec.c @@ -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) -- cgit v1.2.3-55-g7522