aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/arm_timer.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:16:37 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-30 07:38:06 +1100
commitba324b3fb40ac2ce621b97d6c2345d640fd26acb (patch)
tree24e537e988bca3d1189b5e8c0d4f74c1868709df /hw/timer/arm_timer.c
parent0aa6c7df8cfd9b24128807bccc4275571f400ed1 (diff)
downloadqemu-ba324b3fb40ac2ce621b97d6c2345d640fd26acb.zip
qemu-ba324b3fb40ac2ce621b97d6c2345d640fd26acb.tar.gz
qemu-ba324b3fb40ac2ce621b97d6c2345d640fd26acb.tar.bz2
hw/timer: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-57-richard.henderson@linaro.org>
Diffstat (limited to 'hw/timer/arm_timer.c')
-rw-r--r--hw/timer/arm_timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/timer/arm_timer.c b/hw/timer/arm_timer.c
index 9afe8da..0940e03 100644
--- a/hw/timer/arm_timer.c
+++ b/hw/timer/arm_timer.c
@@ -163,7 +163,7 @@ static const VMStateDescription vmstate_arm_timer = {
.name = "arm_timer",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(control, arm_timer_state),
VMSTATE_UINT32(limit, arm_timer_state),
VMSTATE_INT32(int_level, arm_timer_state),
@@ -282,7 +282,7 @@ static const VMStateDescription vmstate_sp804 = {
.name = "sp804",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_INT32_ARRAY(level, SP804State, 2),
VMSTATE_END_OF_LIST()
}