diff options
| author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-05-17 12:51:32 +0200 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2021-05-26 15:33:59 -0700 |
| commit | feece4d07021576a6037adfd597598851cf32bf0 (patch) | |
| tree | 5241ed2c3e99fcb7d0ac19f5d7e3fc45d49ee507 /include/hw/core/sysemu-cpu-ops.h | |
| parent | 8b80bd28a5cf8d8af7d38abcf1c7d81a1b226ec3 (diff) | |
| download | focaccia-qemu-feece4d07021576a6037adfd597598851cf32bf0.tar.gz focaccia-qemu-feece4d07021576a6037adfd597598851cf32bf0.zip | |
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>
Diffstat (limited to 'include/hw/core/sysemu-cpu-ops.h')
| -rw-r--r-- | include/hw/core/sysemu-cpu-ops.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/core/sysemu-cpu-ops.h b/include/hw/core/sysemu-cpu-ops.h index e54a08ea25..0370ac1519 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -16,6 +16,12 @@ * struct SysemuCPUOps: System operations specific to a CPU class */ typedef struct SysemuCPUOps { + /** + * @legacy_vmsd: Legacy state for migration. + * Do not use in new targets, use #DeviceClass::vmsd instead. + */ + const VMStateDescription *legacy_vmsd; + } SysemuCPUOps; #endif /* SYSEMU_CPU_OPS_H */ |