aboutsummaryrefslogtreecommitdiff
path: root/hw/hw.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-10 03:04:42 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-11 11:10:08 -0500
commit80a04bbe90bc0f87c8f985ce1a62084b0485faa9 (patch)
tree0012286a7d6c3f99369796d89396a920bcc2400e /hw/hw.h
parent3c619b5975d68bb07b2e7274b2f8068b11acd772 (diff)
downloadqemu-80a04bbe90bc0f87c8f985ce1a62084b0485faa9.zip
qemu-80a04bbe90bc0f87c8f985ce1a62084b0485faa9.tar.gz
qemu-80a04bbe90bc0f87c8f985ce1a62084b0485faa9.tar.bz2
vmstate: add uint64 array support
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/hw.h')
-rw-r--r--hw/hw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/hw.h b/hw/hw.h
index b023ced..792f592 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -495,6 +495,12 @@ extern const VMStateDescription vmstate_pci_device;
#define VMSTATE_UINT32_ARRAY(_f, _s, _n) \
VMSTATE_UINT32_ARRAY_V(_f, _s, _n, 0)
+#define VMSTATE_UINT64_ARRAY_V(_f, _s, _n, _v) \
+ VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint64, uint64_t)
+
+#define VMSTATE_UINT64_ARRAY(_f, _s, _n) \
+ VMSTATE_UINT64_ARRAY_V(_f, _s, _n, 0)
+
#define VMSTATE_INT32_ARRAY_V(_f, _s, _n, _v) \
VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_int32, int32_t)