mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
vmstate: add VMSTATE_UINT16_EQUAL[_V]
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
aa1cce693d
commit
dc3b83a062
2 changed files with 27 additions and 0 deletions
7
hw/hw.h
7
hw/hw.h
|
@ -322,6 +322,7 @@ extern const VMStateInfo vmstate_info_int32;
|
|||
extern const VMStateInfo vmstate_info_int64;
|
||||
|
||||
extern const VMStateInfo vmstate_info_uint8_equal;
|
||||
extern const VMStateInfo vmstate_info_uint16_equal;
|
||||
extern const VMStateInfo vmstate_info_int32_equal;
|
||||
extern const VMStateInfo vmstate_info_int32_le;
|
||||
|
||||
|
@ -560,6 +561,12 @@ extern const VMStateDescription vmstate_i2c_slave;
|
|||
#define VMSTATE_UINT8_EQUAL(_f, _s) \
|
||||
VMSTATE_SINGLE(_f, _s, 0, vmstate_info_uint8_equal, uint8_t)
|
||||
|
||||
#define VMSTATE_UINT16_EQUAL(_f, _s) \
|
||||
VMSTATE_SINGLE(_f, _s, 0, vmstate_info_uint16_equal, uint16_t)
|
||||
|
||||
#define VMSTATE_UINT16_EQUAL_V(_f, _s, _v) \
|
||||
VMSTATE_SINGLE(_f, _s, _v, vmstate_info_uint16_equal, uint16_t)
|
||||
|
||||
#define VMSTATE_INT32_EQUAL(_f, _s) \
|
||||
VMSTATE_SINGLE(_f, _s, 0, vmstate_info_int32_equal, int32_t)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue