diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-12-21 14:15:54 +1100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-12-29 11:17:30 +1100 |
commit | c9e763b010c83942f1d565a5b904ce53cd6f46e0 (patch) | |
tree | 58d5acc09bd78123237f7e29527d59ce367f58f9 /target/openrisc | |
parent | 6db6de65067424c8e87dc040dc73b9a47114f08f (diff) | |
download | qemu-c9e763b010c83942f1d565a5b904ce53cd6f46e0.zip qemu-c9e763b010c83942f1d565a5b904ce53cd6f46e0.tar.gz qemu-c9e763b010c83942f1d565a5b904ce53cd6f46e0.tar.bz2 |
target/openrisc: Constify VMState in machine.c
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-14-richard.henderson@linaro.org>
Diffstat (limited to 'target/openrisc')
-rw-r--r-- | target/openrisc/machine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/openrisc/machine.c b/target/openrisc/machine.c index b7d7388..3574e57 100644 --- a/target/openrisc/machine.c +++ b/target/openrisc/machine.c @@ -25,7 +25,7 @@ static const VMStateDescription vmstate_tlb_entry = { .name = "tlb_entry", .version_id = 1, .minimum_version_id = 1, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINTTL(mr, OpenRISCTLBEntry), VMSTATE_UINTTL(tr, OpenRISCTLBEntry), VMSTATE_END_OF_LIST() @@ -36,7 +36,7 @@ static const VMStateDescription vmstate_cpu_tlb = { .name = "cpu_tlb", .version_id = 2, .minimum_version_id = 2, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_STRUCT_ARRAY(itlb, CPUOpenRISCTLBContext, TLB_SIZE, 0, vmstate_tlb_entry, OpenRISCTLBEntry), VMSTATE_STRUCT_ARRAY(dtlb, CPUOpenRISCTLBContext, TLB_SIZE, 0, @@ -71,7 +71,7 @@ static const VMStateDescription vmstate_env = { .name = "env", .version_id = 6, .minimum_version_id = 6, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINTTL_2DARRAY(shadow_gpr, CPUOpenRISCState, 16, 32), VMSTATE_UINTTL(pc, CPUOpenRISCState), VMSTATE_UINTTL(ppc, CPUOpenRISCState), @@ -135,7 +135,7 @@ const VMStateDescription vmstate_openrisc_cpu = { .version_id = 1, .minimum_version_id = 1, .post_load = cpu_post_load, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_CPU(), VMSTATE_STRUCT(env, OpenRISCCPU, 1, vmstate_env, CPUOpenRISCState), VMSTATE_END_OF_LIST() |