qemu/hw/rtc
Heinrich Schuchardt 2542d5cf47 hw/rtc/goldfish: keep time offset when resetting
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-stable@nongnu.org
Reported-by: Frederik Du Toit Lotter <fred.lotter@canonical.com>
Fixes: 9a5b40b842 ("hw: rtc: Add Goldfish RTC device")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250321221248.17764-1-heinrich.schuchardt@canonical.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-03-31 21:32:43 +02:00
..
allwinner-rtc.c hw/arm: Mark Allwinner Technology devices as little-endian 2025-02-16 14:41:46 +01:00
aspeed_rtc.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
ds1338.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
exynos4210_rtc.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
goldfish_rtc.c hw/rtc/goldfish: keep time offset when resetting 2025-03-31 21:32:43 +02:00
Kconfig hw/rtc: Add Ricoh RS5C372 RTC emulation 2025-03-11 20:01:26 +01:00
ls7a_rtc.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
m41t80.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
m48t59-internal.h hw/timer/m48t59: Convert debug printf()s to trace events 2020-02-06 10:51:24 +01:00
m48t59-isa.c hw: Declare various const data as 'const' 2025-02-16 14:26:07 +01:00
m48t59.c hw: Declare various const data as 'const' 2025-02-16 14:26:07 +01:00
mc146818rtc.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
meson.build hw/rtc: Add Ricoh RS5C372 RTC emulation 2025-03-11 20:01:26 +01:00
pl031.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
rs5c372.c hw/rtc: Add Ricoh RS5C372 RTC emulation 2025-03-11 20:01:26 +01:00
sun4v-rtc.c hw/rtc/sun4v-rtc: Relicense to GPLv2-or-later 2024-03-07 12:54:56 +00:00
trace-events hw/rtc: Add Ricoh RS5C372 RTC emulation 2025-03-11 20:01:26 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
xlnx-zynqmp-rtc.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00