[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 67/71] system: Constify VMState
From: |
Richard Henderson |
Subject: |
[PULL 67/71] system: Constify VMState |
Date: |
Sat, 30 Dec 2023 08:23:42 +1100 |
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-68-richard.henderson@linaro.org>
---
system/cpu-timers.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/system/cpu-timers.c b/system/cpu-timers.c
index 7452d97b67..bdf3a41dcb 100644
--- a/system/cpu-timers.c
+++ b/system/cpu-timers.c
@@ -165,7 +165,7 @@ static const VMStateDescription icount_vmstate_warp_timer =
{
.version_id = 1,
.minimum_version_id = 1,
.needed = warp_timer_state_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_INT64(vm_clock_warp_start, TimersState),
VMSTATE_TIMER_PTR(icount_warp_timer, TimersState),
VMSTATE_END_OF_LIST()
@@ -177,7 +177,7 @@ static const VMStateDescription
icount_vmstate_adjust_timers = {
.version_id = 1,
.minimum_version_id = 1,
.needed = adjust_timers_state_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_TIMER_PTR(icount_rt_timer, TimersState),
VMSTATE_TIMER_PTR(icount_vm_timer, TimersState),
VMSTATE_END_OF_LIST()
@@ -189,7 +189,7 @@ static const VMStateDescription icount_vmstate_shift = {
.version_id = 2,
.minimum_version_id = 2,
.needed = icount_shift_state_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_INT16(icount_time_shift, TimersState),
VMSTATE_INT64(last_delta, TimersState),
VMSTATE_END_OF_LIST()
@@ -204,12 +204,12 @@ static const VMStateDescription icount_vmstate_timers = {
.version_id = 1,
.minimum_version_id = 1,
.needed = icount_state_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_INT64(qemu_icount_bias, TimersState),
VMSTATE_INT64(qemu_icount, TimersState),
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription * []) {
+ .subsections = (const VMStateDescription * const []) {
&icount_vmstate_warp_timer,
&icount_vmstate_adjust_timers,
&icount_vmstate_shift,
@@ -221,13 +221,13 @@ static const VMStateDescription vmstate_timers = {
.name = "timer",
.version_id = 2,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_INT64(cpu_ticks_offset, TimersState),
VMSTATE_UNUSED(8),
VMSTATE_INT64_V(cpu_clock_offset, TimersState, 2),
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription * []) {
+ .subsections = (const VMStateDescription * const []) {
&icount_vmstate_timers,
NULL
}
--
2.34.1
- [PULL 50/71] hw/s390x: Constify VMState, (continued)
- [PULL 50/71] hw/s390x: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 52/71] hw/sd: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 53/71] hw/sensor: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 51/71] hw/scsi: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 54/71] hw/sparc: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 55/71] hw/ssi: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 56/71] hw/timer: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 58/71] hw/usb: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 57/71] hw/tpm: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 62/71] hw/misc/macio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 67/71] system: Constify VMState,
Richard Henderson <=
- [PULL 61/71] hw/watchdog: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 68/71] replay: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 65/71] cpu-target: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 66/71] migration: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 59/71] hw/vfio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 60/71] hw/virtio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 64/71] backends: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 63/71] audio: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 69/71] util/fifo8: Constify VMState, Richard Henderson, 2023/12/29
- [PULL 70/71] tests/unit/test-vmstate: Constify VMState, Richard Henderson, 2023/12/29