summary refs log tree commit diff stats
path: root/hw
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-10 03:04:38 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-11 11:10:06 -0500
commit632cf0730cfb3255b98cd3187c3f39ea50a238e4 (patch)
treeb7bf7b3a0580ae37aeb09511355d0db0221f8618 /hw
parentd7a6c2703577d51468a9247b70dd8d1917c9696a (diff)
downloadfocaccia-qemu-632cf0730cfb3255b98cd3187c3f39ea50a238e4.tar.gz
focaccia-qemu-632cf0730cfb3255b98cd3187c3f39ea50a238e4.zip
vmstate: add support for arrays of uint16_t
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/hw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/hw.h b/hw/hw.h
index 4ff7dbd7e0..b023ced049 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -483,6 +483,12 @@ extern const VMStateDescription vmstate_pci_device;
 #define VMSTATE_PTIMER(_f, _s)                                        \
     VMSTATE_PTIMER_V(_f, _s, 0)
 
+#define VMSTATE_UINT16_ARRAY_V(_f, _s, _n, _v)                         \
+    VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint16, uint16_t)
+
+#define VMSTATE_UINT16_ARRAY(_f, _s, _n)                               \
+    VMSTATE_UINT16_ARRAY_V(_f, _s, _n, 0)
+
 #define VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v)                        \
     VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint32, uint32_t)