You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 weeks ago
..
Kconfig hw/rtc: Add Ricoh RS5C372 RTC emulation 2 months ago
allwinner-rtc.c hw/arm: Mark Allwinner Technology devices as little-endian 2 months ago
aspeed_rtc.c include: Rename sysemu/ -> system/ 4 months ago
ds1338.c include: Rename sysemu/ -> system/ 4 months ago
exynos4210_rtc.c include: Rename sysemu/ -> system/ 4 months ago
goldfish_rtc.c hw/rtc/goldfish: keep time offset when resetting 4 weeks ago
ls7a_rtc.c include: Rename sysemu/ -> system/ 4 months ago
m41t80.c include: Rename sysemu/ -> system/ 4 months ago
m48t59-internal.h
m48t59-isa.c hw: Declare various const data as 'const' 2 months ago
m48t59.c hw: Declare various const data as 'const' 2 months ago
mc146818rtc.c Accel & Exec patch queue 4 months ago
meson.build hw/rtc: Add Ricoh RS5C372 RTC emulation 2 months ago
pl031.c Accel & Exec patch queue 4 months ago
rs5c372.c hw/rtc: Add Ricoh RS5C372 RTC emulation 2 months ago
sun4v-rtc.c hw/rtc/sun4v-rtc: Relicense to GPLv2-or-later 1 year ago
trace-events hw/rtc: Add Ricoh RS5C372 RTC emulation 2 months ago
trace.h
xlnx-zynqmp-rtc.c include: Rename sysemu/ -> system/ 4 months ago