From: Luc Michel <l...@lmichel.fr> Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> Reviewed-by: Damien Hedde <damien.he...@greensocs.com> Signed-off-by: Luc Michel <l...@lmichel.fr> Tested-by: Guenter Roeck <li...@roeck-us.net> Tested-by: Philippe Mathieu-Daudé <f4...@amsat.org> Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> --- include/hw/clock.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/include/hw/clock.h b/include/hw/clock.h index cbc5e6ced1e..81bcf3e505a 100644 --- a/include/hw/clock.h +++ b/include/hw/clock.h @@ -81,6 +81,11 @@ extern const VMStateDescription vmstate_clock; VMSTATE_CLOCK_V(field, state, 0) #define VMSTATE_CLOCK_V(field, state, version) \ 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: -- 2.20.1