mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 12:53:53 -06:00
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>
This commit is contained in:
parent
19e3835cff
commit
1a1562f5ea
2 changed files with 16 additions and 3 deletions
5
exec.c
5
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue