target/alpha: Constify VMState in machine.c

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-5-richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2023-12-21 14:15:45 +11:00
parent f49986ae8a
commit 35a5922b3a

View file

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