aboutsummaryrefslogtreecommitdiff
path: root/target/cris/machine.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:15:47 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-29 11:17:30 +1100
commit6e4677fe0a6da7abd729c3715b851626a4093b5b (patch)
treecae757d7f350b6035ca40083e78677e54a63f895 /target/cris/machine.c
parentb2e181225820261d2ff55351dcbd0640d9428013 (diff)
downloadqemu-6e4677fe0a6da7abd729c3715b851626a4093b5b.zip
qemu-6e4677fe0a6da7abd729c3715b851626a4093b5b.tar.gz
qemu-6e4677fe0a6da7abd729c3715b851626a4093b5b.tar.bz2
target/cris: Constify VMState in machine.c
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-7-richard.henderson@linaro.org>
Diffstat (limited to 'target/cris/machine.c')
-rw-r--r--target/cris/machine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/cris/machine.c b/target/cris/machine.c
index f370f33..7b9bde8 100644
--- a/target/cris/machine.c
+++ b/target/cris/machine.c
@@ -26,7 +26,7 @@ static const VMStateDescription vmstate_tlbset = {
.name = "cpu/tlbset",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(lo, TLBSet),
VMSTATE_UINT32(hi, TLBSet),
VMSTATE_END_OF_LIST()
@@ -37,7 +37,7 @@ static const VMStateDescription vmstate_cris_env = {
.name = "env",
.version_id = 2,
.minimum_version_id = 2,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32_ARRAY(regs, CPUCRISState, 16),
VMSTATE_UINT32_ARRAY(pregs, CPUCRISState, 16),
VMSTATE_UINT32(pc, CPUCRISState),
@@ -85,7 +85,7 @@ const VMStateDescription vmstate_cris_cpu = {
.name = "cpu",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_CPU(),
VMSTATE_STRUCT(env, CRISCPU, 1, vmstate_cris_env, CPUCRISState),
VMSTATE_END_OF_LIST()