7452f5d
From: Christoffer Dall <christoffer.dall@linaro.org>
7452f5d
Date: Fri, 20 Sep 2013 20:35:06 +0100
7452f5d
Subject: [PATCH] vmstate: Add uint32 2D-array support
7452f5d
7452f5d
Add support for saving VMState of 2D arrays of uint32 values.
7452f5d
7452f5d
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
7452f5d
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
7452f5d
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
7452f5d
(cherry picked from commit a1b1d277cdaac98f25be249e7819aac781a35530)
7452f5d
---
7452f5d
 include/migration/vmstate.h | 6 ++++++
7452f5d
 1 file changed, 6 insertions(+)
7452f5d
7452f5d
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
7452f5d
index 1c31b5d..e5538c7 100644
7452f5d
--- a/include/migration/vmstate.h
7452f5d
+++ b/include/migration/vmstate.h
7452f5d
@@ -633,9 +633,15 @@ extern const VMStateInfo vmstate_info_bitmap;
7452f5d
 #define VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v)                        \
7452f5d
     VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint32, uint32_t)
7452f5d
 
7452f5d
+#define VMSTATE_UINT32_2DARRAY_V(_f, _s, _n1, _n2, _v)                \
7452f5d
+    VMSTATE_2DARRAY(_f, _s, _n1, _n2, _v, vmstate_info_uint32, uint32_t)
7452f5d
+
7452f5d
 #define VMSTATE_UINT32_ARRAY(_f, _s, _n)                              \
7452f5d
     VMSTATE_UINT32_ARRAY_V(_f, _s, _n, 0)
7452f5d
 
7452f5d
+#define VMSTATE_UINT32_2DARRAY(_f, _s, _n1, _n2)                      \
7452f5d
+    VMSTATE_UINT32_2DARRAY_V(_f, _s, _n1, _n2, 0)
7452f5d
+
7452f5d
 #define VMSTATE_UINT64_ARRAY_V(_f, _s, _n, _v)                        \
7452f5d
     VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint64, uint64_t)
7452f5d