Home
last modified time | relevance | path

Searched hist:c0a63857 (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/rtc/
H A Daspeed_rtc.cc0a63857 Thu Aug 31 03:45:18 CDT 2023 Peter Maydell <peter.maydell@linaro.org> hw/rtc/aspeed_rtc: Use 64-bit offset for holding time_t difference

In the aspeed_rtc device we store a difference between two time_t
values in an 'int'. This is not really correct when time_t could
be 64 bits. Enlarge the field to 'int64_t'.

This is a migration compatibility break for the aspeed boards.
While we are changing the vmstate, remove the accidental
duplicate of the offset field.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
/openbmc/qemu/include/hw/rtc/
H A Daspeed_rtc.hc0a63857 Thu Aug 31 03:45:18 CDT 2023 Peter Maydell <peter.maydell@linaro.org> hw/rtc/aspeed_rtc: Use 64-bit offset for holding time_t difference

In the aspeed_rtc device we store a difference between two time_t
values in an 'int'. This is not really correct when time_t could
be 64 bits. Enlarge the field to 'int64_t'.

This is a migration compatibility break for the aspeed boards.
While we are changing the vmstate, remove the accidental
duplicate of the offset field.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>