From: Juan Quintela Date: Tue, 29 Sep 2009 20:48:29 +0000 (+0200) Subject: vmstate: add uint8 array X-Git-Tag: TizenStudio_2.0_p2.3~7317 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e97ca2955bf8fb7d30354cfd0a47fda1fba2f68;p=sdk%2Femulator%2Fqemu.git vmstate: add uint8 array Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- diff --git a/hw/hw.h b/hw/hw.h index 9afe50a..2d86389 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -510,6 +510,12 @@ extern const VMStateDescription vmstate_pci_device; #define VMSTATE_UINT16_ARRAY(_f, _s, _n) \ VMSTATE_UINT16_ARRAY_V(_f, _s, _n, 0) +#define VMSTATE_UINT8_ARRAY_V(_f, _s, _n, _v) \ + VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint8, uint8_t) + +#define VMSTATE_UINT8_ARRAY(_f, _s, _n) \ + VMSTATE_UINT8_ARRAY_V(_f, _s, _n, 0) + #define VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v) \ VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint32, uint32_t)