From 7e72abc382b700a72549e8147bdea413534eeedc Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Thu, 10 Sep 2009 03:04:47 +0200 Subject: vmstate: port cirrus_vga device Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- hw/hw.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hw/hw.h') diff --git a/hw/hw.h b/hw/hw.h index 792f592..cf266b3 100644 --- a/hw/hw.h +++ b/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) { \ -- cgit v1.1