hw/core/clock: provide the VMSTATE_ARRAY_CLOCK macro
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Damien Hedde <damien.hedde@greensocs.com> Signed-off-by: Luc Michel <luc@lmichel.fr> Tested-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
43f828e155
commit
f6f3c9b0f7
|
@ -81,6 +81,11 @@ extern const VMStateDescription vmstate_clock;
|
||||||
VMSTATE_CLOCK_V(field, state, 0)
|
VMSTATE_CLOCK_V(field, state, 0)
|
||||||
#define VMSTATE_CLOCK_V(field, state, version) \
|
#define VMSTATE_CLOCK_V(field, state, version) \
|
||||||
VMSTATE_STRUCT_POINTER_V(field, state, version, vmstate_clock, Clock)
|
VMSTATE_STRUCT_POINTER_V(field, state, version, vmstate_clock, Clock)
|
||||||
|
#define VMSTATE_ARRAY_CLOCK(field, state, num) \
|
||||||
|
VMSTATE_ARRAY_CLOCK_V(field, state, num, 0)
|
||||||
|
#define VMSTATE_ARRAY_CLOCK_V(field, state, num, version) \
|
||||||
|
VMSTATE_ARRAY_OF_POINTER_TO_STRUCT(field, state, num, version, \
|
||||||
|
vmstate_clock, Clock)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clock_setup_canonical_path:
|
* clock_setup_canonical_path:
|
||||||
|
|
Loading…
Reference in a new issue