projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98b5b74
)
migration: Define VMSTATE_UINT64_2DARRAY
author
Peter Maydell
<peter.maydell@linaro.org>
Fri, 17 Jun 2016 14:23:45 +0000
(15:23 +0100)
committer
Peter Maydell
<peter.maydell@linaro.org>
Fri, 17 Jun 2016 14:23:51 +0000
(15:23 +0100)
Define a VMSTATE_UINT64_2DARRAY macro, to go with the ones we
already have for other type sizes.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org>
Tested-by: Shannon Zhao <shannon.zhao@linaro.org>
Message-id:
1465915112
-29272-2-git-send-email-peter.maydell@linaro.org
include/migration/vmstate.h
patch
|
blob
|
history
diff --git
a/include/migration/vmstate.h
b/include/migration/vmstate.h
index 6c65811aeebdc05d4c0c43c49222a0552eaf0093..25ea58a77fe0944aba9be85a15b86a55554bae8b 100644
(file)
--- a/
include/migration/vmstate.h
+++ b/
include/migration/vmstate.h
@@
-856,6
+856,12
@@
extern const VMStateInfo vmstate_info_bitmap;
#define VMSTATE_UINT64_ARRAY(_f, _s, _n) \
VMSTATE_UINT64_ARRAY_V(_f, _s, _n, 0)
+#define VMSTATE_UINT64_2DARRAY(_f, _s, _n1, _n2) \
+ VMSTATE_UINT64_2DARRAY_V(_f, _s, _n1, _n2, 0)
+
+#define VMSTATE_UINT64_2DARRAY_V(_f, _s, _n1, _n2, _v) \
+ VMSTATE_2DARRAY(_f, _s, _n1, _n2, _v, vmstate_info_uint64, uint64_t)
+
#define VMSTATE_INT16_ARRAY_V(_f, _s, _n, _v) \
VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_int16, int16_t)