mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
system: Constify VMState
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>
This commit is contained in:
parent
a77ffe9595
commit
72ecb4a96b
1 changed files with 7 additions and 7 deletions
|
@ -165,7 +165,7 @@ static const VMStateDescription icount_vmstate_warp_timer = {
|
||||||
.version_id = 1,
|
.version_id = 1,
|
||||||
.minimum_version_id = 1,
|
.minimum_version_id = 1,
|
||||||
.needed = warp_timer_state_needed,
|
.needed = warp_timer_state_needed,
|
||||||
.fields = (VMStateField[]) {
|
.fields = (const VMStateField[]) {
|
||||||
VMSTATE_INT64(vm_clock_warp_start, TimersState),
|
VMSTATE_INT64(vm_clock_warp_start, TimersState),
|
||||||
VMSTATE_TIMER_PTR(icount_warp_timer, TimersState),
|
VMSTATE_TIMER_PTR(icount_warp_timer, TimersState),
|
||||||
VMSTATE_END_OF_LIST()
|
VMSTATE_END_OF_LIST()
|
||||||
|
@ -177,7 +177,7 @@ static const VMStateDescription icount_vmstate_adjust_timers = {
|
||||||
.version_id = 1,
|
.version_id = 1,
|
||||||
.minimum_version_id = 1,
|
.minimum_version_id = 1,
|
||||||
.needed = adjust_timers_state_needed,
|
.needed = adjust_timers_state_needed,
|
||||||
.fields = (VMStateField[]) {
|
.fields = (const VMStateField[]) {
|
||||||
VMSTATE_TIMER_PTR(icount_rt_timer, TimersState),
|
VMSTATE_TIMER_PTR(icount_rt_timer, TimersState),
|
||||||
VMSTATE_TIMER_PTR(icount_vm_timer, TimersState),
|
VMSTATE_TIMER_PTR(icount_vm_timer, TimersState),
|
||||||
VMSTATE_END_OF_LIST()
|
VMSTATE_END_OF_LIST()
|
||||||
|
@ -189,7 +189,7 @@ static const VMStateDescription icount_vmstate_shift = {
|
||||||
.version_id = 2,
|
.version_id = 2,
|
||||||
.minimum_version_id = 2,
|
.minimum_version_id = 2,
|
||||||
.needed = icount_shift_state_needed,
|
.needed = icount_shift_state_needed,
|
||||||
.fields = (VMStateField[]) {
|
.fields = (const VMStateField[]) {
|
||||||
VMSTATE_INT16(icount_time_shift, TimersState),
|
VMSTATE_INT16(icount_time_shift, TimersState),
|
||||||
VMSTATE_INT64(last_delta, TimersState),
|
VMSTATE_INT64(last_delta, TimersState),
|
||||||
VMSTATE_END_OF_LIST()
|
VMSTATE_END_OF_LIST()
|
||||||
|
@ -204,12 +204,12 @@ static const VMStateDescription icount_vmstate_timers = {
|
||||||
.version_id = 1,
|
.version_id = 1,
|
||||||
.minimum_version_id = 1,
|
.minimum_version_id = 1,
|
||||||
.needed = icount_state_needed,
|
.needed = icount_state_needed,
|
||||||
.fields = (VMStateField[]) {
|
.fields = (const VMStateField[]) {
|
||||||
VMSTATE_INT64(qemu_icount_bias, TimersState),
|
VMSTATE_INT64(qemu_icount_bias, TimersState),
|
||||||
VMSTATE_INT64(qemu_icount, TimersState),
|
VMSTATE_INT64(qemu_icount, TimersState),
|
||||||
VMSTATE_END_OF_LIST()
|
VMSTATE_END_OF_LIST()
|
||||||
},
|
},
|
||||||
.subsections = (const VMStateDescription * []) {
|
.subsections = (const VMStateDescription * const []) {
|
||||||
&icount_vmstate_warp_timer,
|
&icount_vmstate_warp_timer,
|
||||||
&icount_vmstate_adjust_timers,
|
&icount_vmstate_adjust_timers,
|
||||||
&icount_vmstate_shift,
|
&icount_vmstate_shift,
|
||||||
|
@ -221,13 +221,13 @@ static const VMStateDescription vmstate_timers = {
|
||||||
.name = "timer",
|
.name = "timer",
|
||||||
.version_id = 2,
|
.version_id = 2,
|
||||||
.minimum_version_id = 1,
|
.minimum_version_id = 1,
|
||||||
.fields = (VMStateField[]) {
|
.fields = (const VMStateField[]) {
|
||||||
VMSTATE_INT64(cpu_ticks_offset, TimersState),
|
VMSTATE_INT64(cpu_ticks_offset, TimersState),
|
||||||
VMSTATE_UNUSED(8),
|
VMSTATE_UNUSED(8),
|
||||||
VMSTATE_INT64_V(cpu_clock_offset, TimersState, 2),
|
VMSTATE_INT64_V(cpu_clock_offset, TimersState, 2),
|
||||||
VMSTATE_END_OF_LIST()
|
VMSTATE_END_OF_LIST()
|
||||||
},
|
},
|
||||||
.subsections = (const VMStateDescription * []) {
|
.subsections = (const VMStateDescription * const []) {
|
||||||
&icount_vmstate_timers,
|
&icount_vmstate_timers,
|
||||||
NULL
|
NULL
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue