mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
vmstate: accept QEMUTimer in VMSTATE_TIMER*, add VMSTATE_TIMER_PTR*
Old users of VMSTATE_TIMER* are mechanically changed to VMSTATE_TIMER_PTR variants. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cd1bd53a66
commit
e720677e32
27 changed files with 45 additions and 33 deletions
|
@ -328,7 +328,7 @@ static const VMStateDescription vmstate_a9_gtimer = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
VMSTATE_TIMER(timer, A9GTimerState),
|
||||
VMSTATE_TIMER_PTR(timer, A9GTimerState),
|
||||
VMSTATE_UINT64(counter, A9GTimerState),
|
||||
VMSTATE_UINT64(ref_counter, A9GTimerState),
|
||||
VMSTATE_UINT64(cpu_ref_time, A9GTimerState),
|
||||
|
|
|
@ -246,7 +246,7 @@ static const VMStateDescription vmstate_timerblock = {
|
|||
VMSTATE_UINT32(control, TimerBlock),
|
||||
VMSTATE_UINT32(status, TimerBlock),
|
||||
VMSTATE_INT64(tick, TimerBlock),
|
||||
VMSTATE_TIMER(timer, TimerBlock),
|
||||
VMSTATE_TIMER_PTR(timer, TimerBlock),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
};
|
||||
|
|
|
@ -299,7 +299,7 @@ static const VMStateDescription vmstate_hpet_timer = {
|
|||
VMSTATE_UINT64(fsb, HPETTimer),
|
||||
VMSTATE_UINT64(period, HPETTimer),
|
||||
VMSTATE_UINT8(wrap_flag, HPETTimer),
|
||||
VMSTATE_TIMER(qemu_timer, HPETTimer),
|
||||
VMSTATE_TIMER_PTR(qemu_timer, HPETTimer),
|
||||
VMSTATE_END_OF_LIST()
|
||||
}
|
||||
};
|
||||
|
|
|
@ -758,7 +758,7 @@ static const VMStateDescription vmstate_rtc = {
|
|||
VMSTATE_BUFFER(cmos_data, RTCState),
|
||||
VMSTATE_UINT8(cmos_index, RTCState),
|
||||
VMSTATE_UNUSED(7*4),
|
||||
VMSTATE_TIMER(periodic_timer, RTCState),
|
||||
VMSTATE_TIMER_PTR(periodic_timer, RTCState),
|
||||
VMSTATE_INT64(next_periodic_time, RTCState),
|
||||
VMSTATE_UNUSED(3*8),
|
||||
VMSTATE_UINT32_V(irq_coalesced, RTCState, 2),
|
||||
|
@ -766,7 +766,7 @@ static const VMStateDescription vmstate_rtc = {
|
|||
VMSTATE_UINT64_V(base_rtc, RTCState, 3),
|
||||
VMSTATE_UINT64_V(last_update, RTCState, 3),
|
||||
VMSTATE_INT64_V(offset, RTCState, 3),
|
||||
VMSTATE_TIMER_V(update_timer, RTCState, 3),
|
||||
VMSTATE_TIMER_PTR_V(update_timer, RTCState, 3),
|
||||
VMSTATE_UINT64_V(next_alarm_time, RTCState, 3),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue