mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
vmstate: port cirrus_vga device
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
747791f11a
commit
7e72abc382
2 changed files with 63 additions and 98 deletions
9
hw/hw.h
9
hw/hw.h
|
@ -408,6 +408,15 @@ extern const VMStateInfo vmstate_info_buffer;
|
|||
+ type_check_array(uint8_t,typeof_field(_state, _field),sizeof(typeof_field(_state,_field))) \
|
||||
}
|
||||
|
||||
#define VMSTATE_BUFFER_START_MIDDLE(_field, _state, start) { \
|
||||
.name = (stringify(_field)), \
|
||||
.size = sizeof(typeof_field(_state,_field)) - start, \
|
||||
.info = &vmstate_info_buffer, \
|
||||
.flags = VMS_BUFFER, \
|
||||
.offset = offsetof(_state, _field) + start \
|
||||
+ type_check_array(uint8_t,typeof_field(_state, _field),sizeof(typeof_field(_state,_field))) \
|
||||
}
|
||||
|
||||
extern const VMStateDescription vmstate_pci_device;
|
||||
|
||||
#define VMSTATE_PCI_DEVICE(_field, _state) { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue