aboutsummaryrefslogtreecommitdiff
path: root/hw/hw.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-06-13 14:15:43 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-06-13 15:33:01 +0300
commitcea1adfda7cca55788fbe55107e5e7943d374065 (patch)
treebf97fbad5725194f06b639fc406acd3721619e5a /hw/hw.h
parent22a9fe38a37efc2feb67fac533309ea219242cb5 (diff)
downloadqemu-cea1adfda7cca55788fbe55107e5e7943d374065.zip
qemu-cea1adfda7cca55788fbe55107e5e7943d374065.tar.gz
qemu-cea1adfda7cca55788fbe55107e5e7943d374065.tar.bz2
vmstate: Add VMSTATE_STRUCT_VARRAY_UINT8
Required for hpet. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/hw.h')
-rw-r--r--hw/hw.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/hw.h b/hw/hw.h
index fc2d184..36be0be 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -474,6 +474,16 @@ extern const VMStateInfo vmstate_info_unused_buffer;
.offset = vmstate_offset_array(_state, _field, _type, _num), \
}
+#define VMSTATE_STRUCT_VARRAY_UINT8(_field, _state, _field_num, _version, _vmsd, _type) { \
+ .name = (stringify(_field)), \
+ .num_offset = vmstate_offset_value(_state, _field_num, uint8_t), \
+ .version_id = (_version), \
+ .vmsd = &(_vmsd), \
+ .size = sizeof(_type), \
+ .flags = VMS_STRUCT|VMS_VARRAY_INT32, \
+ .offset = offsetof(_state, _field), \
+}
+
#define VMSTATE_STATIC_BUFFER(_field, _state, _version, _test, _start, _size) { \
.name = (stringify(_field)), \
.version_id = (_version), \