[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/14] hw/core/clock: provide the VMSTATE_ARRAY_CLOCK macro
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 01/14] hw/core/clock: provide the VMSTATE_ARRAY_CLOCK macro |
Date: |
Sat, 26 Sep 2020 22:36:22 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
On 9/25/20 12:17 PM, Luc Michel wrote:
> Signed-off-by: Luc Michel <luc@lmichel.fr>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> include/hw/clock.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/hw/clock.h b/include/hw/clock.h
> index d357594df9..c93e6113cd 100644
> --- a/include/hw/clock.h
> +++ b/include/hw/clock.h
> @@ -79,10 +79,15 @@ struct Clock {
> extern const VMStateDescription vmstate_clock;
> #define VMSTATE_CLOCK(field, state) \
> 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:
> * @clk: clock
> *
>
- [PATCH 00/14] raspi: add the bcm2835 cprman clock manager, Luc Michel, 2020/09/25
- [PATCH 01/14] hw/core/clock: provide the VMSTATE_ARRAY_CLOCK macro, Luc Michel, 2020/09/25
- [PATCH 04/14] hw/arm/raspi: add a skeleton implementation of the cprman, Luc Michel, 2020/09/25
- [PATCH 06/14] hw/misc/bcm2835_cprman: implement PLLs behaviour, Luc Michel, 2020/09/25
- [PATCH 02/14] hw/core/clock: trace clock values in Hz instead of ns, Luc Michel, 2020/09/25
- [PATCH 11/14] hw/misc/bcm2835_cprman: add the DSI0HSCK multiplexer, Luc Michel, 2020/09/25