Skip to content

Commit

Permalink
target/avr: Constify VMState in machine.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rth7680 committed Dec 29, 2023
1 parent 35a5922 commit b2e1812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/avr/machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b2e1812

Please sign in to comment.