aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:15:46 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-29 11:17:30 +1100
commitb2e181225820261d2ff55351dcbd0640d9428013 (patch)
treed36121a083e4e32dce6deff10e2674177f8d0fb1 /target
parent35a5922b3ad178823aa2041e8b77c85d245daf2a (diff)
downloadqemu-b2e181225820261d2ff55351dcbd0640d9428013.zip
qemu-b2e181225820261d2ff55351dcbd0640d9428013.tar.gz
qemu-b2e181225820261d2ff55351dcbd0640d9428013.tar.bz2
target/avr: Constify VMState in machine.c
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-6-richard.henderson@linaro.org>
Diffstat (limited to 'target')
-rw-r--r--target/avr/machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/avr/machine.c b/target/avr/machine.c
index 16f7a3e..4402862 100644
--- a/target/avr/machine.c
+++ b/target/avr/machine.c
@@ -100,7 +100,7 @@ const VMStateDescription vms_avr_cpu = {
.name = "cpu",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(env.pc_w, AVRCPU),
VMSTATE_UINT32(env.sp, AVRCPU),
VMSTATE_UINT32(env.skip, AVRCPU),