summary refs log tree commit diff stats
path: root/target/hppa/machine.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-29 10:42:26 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-05-08 14:22:12 +0200
commitdd54fc2a6b95e067bc4c3a139a0169114dba594a (patch)
treee9efeec01822f8366c423fd68aca0da7cd7f0131 /target/hppa/machine.c
parent67ce2866a76935cdea39f03e282844e3c4559f12 (diff)
downloadfocaccia-qemu-dd54fc2a6b95e067bc4c3a139a0169114dba594a.tar.gz
focaccia-qemu-dd54fc2a6b95e067bc4c3a139a0169114dba594a.zip
target/migration: Inline VMSTATE_CPU()
VMSTATE_CPU() is only used in 4 places and doesn't provide
much, directly inline it using VMSTATE_STRUCT().

This removes the last COMPILING_PER_TARGET in "hw/core/cpu.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250429085148.11876-1-philmd@linaro.org>
Diffstat (limited to 'target/hppa/machine.c')
-rw-r--r--target/hppa/machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/hppa/machine.c b/target/hppa/machine.c
index bb47a2e689..13e555151a 100644
--- a/target/hppa/machine.c
+++ b/target/hppa/machine.c
@@ -216,7 +216,7 @@ static const VMStateDescription vmstate_env = {
 };
 
 static const VMStateField vmstate_cpu_fields[] = {
-    VMSTATE_CPU(),
+    VMSTATE_STRUCT(parent_obj, HPPACPU, 0, vmstate_cpu_common, CPUState),
     VMSTATE_STRUCT(env, HPPACPU, 1, vmstate_env, CPUHPPAState),
     VMSTATE_END_OF_LIST()
 };