On 21/3/25 23:12, Heinrich Schuchardt wrote:
Currently resetting the leads to resynchronizing the Goldfish RTC with the
system clock of the host. In real hardware an RTC reset would not change
the wall time. Other RTCs like pl031 do not show this behavior.

Move the synchronization of the RTC with the system clock to the instance
realization.

Cc: qemu-sta...@nongnu.org
Reported-by: Frederik Du Toit Lotter <fred.lot...@canonical.com>
Fixes: 9a5b40b8427 ("hw: rtc: Add Goldfish RTC device")
Signed-off-by: Heinrich Schuchardt <heinrich.schucha...@canonical.com>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
v2:
        Remove a superfluous intialization to nul.
        Add Cc:, Fixes:, and Reviewed-by: tags.
v1:
        
https://lore.kernel.org/qemu-devel/CAAhSdy0-we9B19wRRqk_rRFkjY2LPPMRGaTdE=_4ge_pcr4...@mail.gmail.com/T/
---
  hw/rtc/goldfish_rtc.c | 13 ++++++-------
  1 file changed, 6 insertions(+), 7 deletions(-)

Thanks, patch queued!

Reply via email to