mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
cpu: Move CPUClass::vmsd to SysemuCPUOps
Migration is specific to system emulation. - Move the CPUClass::vmsd field to SysemuCPUOps, - restrict VMSTATE_CPU() macro to sysemu, - vmstate_dummy is now unused, remove it. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210517105140.1062037-16-f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
8b80bd28a5
commit
feece4d070
12 changed files with 22 additions and 25 deletions
|
@ -9267,6 +9267,7 @@ static Property ppc_cpu_properties[] = {
|
|||
#include "hw/core/sysemu-cpu-ops.h"
|
||||
|
||||
static const struct SysemuCPUOps ppc_sysemu_ops = {
|
||||
.legacy_vmsd = &vmstate_ppc_cpu,
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -9312,7 +9313,6 @@ static void ppc_cpu_class_init(ObjectClass *oc, void *data)
|
|||
cc->gdb_write_register = ppc_cpu_gdb_write_register;
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
cc->get_phys_page_debug = ppc_cpu_get_phys_page_debug;
|
||||
cc->legacy_vmsd = &vmstate_ppc_cpu;
|
||||
cc->sysemu_ops = &ppc_sysemu_ops;
|
||||
#endif
|
||||
#if defined(CONFIG_SOFTMMU)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue