]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/alpha: Constify VMState in machine.c
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 21 Dec 2023 03:15:45 +0000 (14:15 +1100)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Dec 2023 00:17:30 +0000 (11:17 +1100)
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-5-richard.henderson@linaro.org>

target/alpha/machine.c

index 2b7c8148ff58a0ddb53557b4b25e554c8f23dabf..f09834f635d21aeef45b838f16e5cc0a6b344220 100644 (file)
@@ -24,7 +24,7 @@ static const VMStateInfo vmstate_fpcr = {
     .put = put_fpcr,
 };
 
-static VMStateField vmstate_env_fields[] = {
+static const VMStateField vmstate_env_fields[] = {
     VMSTATE_UINTTL_ARRAY(ir, CPUAlphaState, 31),
     VMSTATE_UINTTL_ARRAY(fir, CPUAlphaState, 31),
     /* Save the architecture value of the fpcr, not the internally
@@ -73,7 +73,7 @@ static const VMStateDescription vmstate_env = {
     .fields = vmstate_env_fields,
 };
 
-static VMStateField vmstate_cpu_fields[] = {
+static const VMStateField vmstate_cpu_fields[] = {
     VMSTATE_CPU(),
     VMSTATE_STRUCT(env, AlphaCPU, 1, vmstate_env, CPUAlphaState),
     VMSTATE_END_OF_LIST()