projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50491c5
)
vmstate.h: Provide VMSTATE_UINT16_SUB_ARRAY
author
Luc Michel
<luc.michel@greensocs.com>
Tue, 14 Aug 2018 16:17:20 +0000
(17:17 +0100)
committer
Peter Maydell
<peter.maydell@linaro.org>
Tue, 14 Aug 2018 16:17:20 +0000
(17:17 +0100)
Provide a VMSTATE_UINT16_SUB_ARRAY macro to save a uint16_t sub-array in
a VMState.
Signed-off-by: Luc Michel <luc.michel@greensocs.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id:
20180727095421
.386-5-luc.michel@greensocs.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/migration/vmstate.h
patch
|
blob
|
history
diff --git
a/include/migration/vmstate.h
b/include/migration/vmstate.h
index 42b946ce902cf677ba16df4bd6bbcb7d2ada213a..2b501d04669a4a9f33fe026693d675c0d0556a64 100644
(file)
--- a/
include/migration/vmstate.h
+++ b/
include/migration/vmstate.h
@@
-923,6
+923,9
@@
extern const VMStateInfo vmstate_info_qtailq;
#define VMSTATE_UINT16_ARRAY(_f, _s, _n) \
VMSTATE_UINT16_ARRAY_V(_f, _s, _n, 0)
+#define VMSTATE_UINT16_SUB_ARRAY(_f, _s, _start, _num) \
+ VMSTATE_SUB_ARRAY(_f, _s, _start, _num, 0, vmstate_info_uint16, uint16_t)
+
#define VMSTATE_UINT16_2DARRAY(_f, _s, _n1, _n2) \
VMSTATE_UINT16_2DARRAY_V(_f, _s, _n1, _n2, 0)