diff options
| author | Luc Michel | 2018-08-14 18:17:20 +0200 |
|---|---|---|
| committer | Peter Maydell | 2018-08-14 18:17:20 +0200 |
| commit | b77473a0f7799f3484a1e483515c8bde7a872248 (patch) | |
| tree | 9ddf135007111bdbf4b2c13683bd4c396058556e /include/migration | |
| parent | intc/arm_gic: Remove some dead code and put some functions static (diff) | |
| download | qemu-b77473a0f7799f3484a1e483515c8bde7a872248.tar.gz qemu-b77473a0f7799f3484a1e483515c8bde7a872248.tar.xz qemu-b77473a0f7799f3484a1e483515c8bde7a872248.zip | |
vmstate.h: Provide VMSTATE_UINT16_SUB_ARRAY
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>
Diffstat (limited to 'include/migration')
| -rw-r--r-- | include/migration/vmstate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 42b946ce90..2b501d0466 100644 --- 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) |
