cpu: Move CPUClass::vmsd to SysemuCPUOps
commitfeece4d07021576a6037adfd597598851cf32bf0
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 17 May 2021 10:51:32 +0000 (17 12:51 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 26 May 2021 22:33:59 +0000 (26 15:33 -0700)
tree5241ed2c3e99fcb7d0ac19f5d7e3fc45d49ee507
parent8b80bd28a5cf8d8af7d38abcf1c7d81a1b226ec3
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>
12 files changed:
cpu.c
include/hw/core/cpu.h
include/hw/core/sysemu-cpu-ops.h
include/migration/vmstate.h
stubs/vmstate.c
target/arm/cpu.c
target/i386/cpu.c
target/mips/cpu.c
target/ppc/cpu_init.c
target/riscv/cpu.c
target/s390x/cpu.c
target/sparc/cpu.c