mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -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
|
@ -652,17 +652,29 @@ extern const VMStateInfo vmstate_info_bitmap;
|
|||
#define VMSTATE_FLOAT64(_f, _s) \
|
||||
VMSTATE_FLOAT64_V(_f, _s, 0)
|
||||
|
||||
#define VMSTATE_TIMER_TEST(_f, _s, _test) \
|
||||
#define VMSTATE_TIMER_PTR_TEST(_f, _s, _test) \
|
||||
VMSTATE_POINTER_TEST(_f, _s, _test, vmstate_info_timer, QEMUTimer *)
|
||||
|
||||
#define VMSTATE_TIMER_V(_f, _s, _v) \
|
||||
#define VMSTATE_TIMER_PTR_V(_f, _s, _v) \
|
||||
VMSTATE_POINTER(_f, _s, _v, vmstate_info_timer, QEMUTimer *)
|
||||
|
||||
#define VMSTATE_TIMER_PTR(_f, _s) \
|
||||
VMSTATE_TIMER_PTR_V(_f, _s, 0)
|
||||
|
||||
#define VMSTATE_TIMER_PTR_ARRAY(_f, _s, _n) \
|
||||
VMSTATE_ARRAY_OF_POINTER(_f, _s, _n, 0, vmstate_info_timer, QEMUTimer *)
|
||||
|
||||
#define VMSTATE_TIMER_TEST(_f, _s, _test) \
|
||||
VMSTATE_SINGLE_TEST(_f, _s, _test, 0, vmstate_info_timer, QEMUTimer)
|
||||
|
||||
#define VMSTATE_TIMER_V(_f, _s, _v) \
|
||||
VMSTATE_SINGLE(_f, _s, _v, vmstate_info_timer, QEMUTimer)
|
||||
|
||||
#define VMSTATE_TIMER(_f, _s) \
|
||||
VMSTATE_TIMER_V(_f, _s, 0)
|
||||
|
||||
#define VMSTATE_TIMER_ARRAY(_f, _s, _n) \
|
||||
VMSTATE_ARRAY_OF_POINTER(_f, _s, _n, 0, vmstate_info_timer, QEMUTimer *)
|
||||
VMSTATE_ARRAY(_f, _s, _n, 0, vmstate_info_timer, QEMUTimer)
|
||||
|
||||
#define VMSTATE_BOOL_ARRAY_V(_f, _s, _n, _v) \
|
||||
VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_bool, bool)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue