Message ID | 20180619093124.24011-4-luc.michel@greensocs.com |
---|---|
State | New |
Headers | show |
Series | arm_gic: add virtualization extensions support | expand |
On 19 June 2018 at 10:31, <luc.michel@greensocs.com> wrote: > From: Luc MICHEL <luc.michel@greensocs.com> > > 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> thanks -- PMM
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)