summary refs log tree commit diff stats
path: root/include/hw/core
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-23 19:56:20 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-09 17:00:46 +0100
commitca05578fc80f4253ed19f4c4128a4cbd5b83f0b5 (patch)
tree29c58801fd4b070fd8dc1a2a5acdbaa0fe7769a6 /include/hw/core
parent1405d7e60d8c98a28b29885f70da4f2e4407fbc6 (diff)
downloadfocaccia-qemu-ca05578fc80f4253ed19f4c4128a4cbd5b83f0b5.tar.gz
focaccia-qemu-ca05578fc80f4253ed19f4c4128a4cbd5b83f0b5.zip
cpus: Register VMState per user / system emulation
Simplify cpu-target.c by extracting mixed vmstate code
into the cpu_vmstate_register() / cpu_vmstate_unregister()
helpers, implemented in cpu-user.c and cpu-system.c.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250123234415.59850-20-philmd@linaro.org>
Diffstat (limited to 'include/hw/core')
-rw-r--r--include/hw/core/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index 9dd6ac7c76..bc0c946834 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -1165,6 +1165,8 @@ G_NORETURN void cpu_abort(CPUState *cpu, const char *fmt, ...)
 /* $(top_srcdir)/cpu.c */
 void cpu_class_init_props(DeviceClass *dc);
 void cpu_exec_initfn(CPUState *cpu);
+void cpu_vmstate_register(CPUState *cpu);
+void cpu_vmstate_unregister(CPUState *cpu);
 bool cpu_exec_realizefn(CPUState *cpu, Error **errp);
 void cpu_exec_unrealizefn(CPUState *cpu);
 void cpu_exec_reset_hold(CPUState *cpu);