projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f7b009
)
vmstate.h: Provide VMSTATE_BOOL_SUB_ARRAY
author
Peter Maydell
<peter.maydell@linaro.org>
Thu, 31 May 2018 13:50:53 +0000
(14:50 +0100)
committer
Peter Maydell
<peter.maydell@linaro.org>
Thu, 31 May 2018 15:32:35 +0000
(16:32 +0100)
Provide a VMSTATE_BOOL_SUB_ARRAY to go with VMSTATE_UINT8_SUB_ARRAY
and friends.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id:
20180521140402
.23318-23-peter.maydell@linaro.org
include/migration/vmstate.h
patch
|
blob
|
history
diff --git
a/include/migration/vmstate.h
b/include/migration/vmstate.h
index df463fd33d69b266497a239c8e9768b9306be63a..59fc75e4187b775397b34b3e91fee8cfdf8c409b 100644
(file)
--- a/
include/migration/vmstate.h
+++ b/
include/migration/vmstate.h
@@
-870,6
+870,9
@@
extern const VMStateInfo vmstate_info_qtailq;
#define VMSTATE_BOOL_ARRAY(_f, _s, _n) \
VMSTATE_BOOL_ARRAY_V(_f, _s, _n, 0)
+#define VMSTATE_BOOL_SUB_ARRAY(_f, _s, _start, _num) \
+ VMSTATE_SUB_ARRAY(_f, _s, _start, _num, 0, vmstate_info_bool, bool)
+
#define VMSTATE_UINT16_ARRAY_V(_f, _s, _n, _v) \
VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint16, uint16_t)