]> git.proxmox.com Git - mirror_qemu.git/commit
hw/rtc/mc146818rtc: Pass MC146818RtcState instead of ISADevice argument
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 10 Feb 2023 23:17:51 +0000 (00:17 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Feb 2023 21:29:02 +0000 (22:29 +0100)
commit55c86cb8038d8a2db792712fd27b4f486ee09c7a
treefcc9898d619d4eb0e85adc592d97043f9e406ed9
parent8df7129790896ffde2f9cb1005a0ac8cf1005280
hw/rtc/mc146818rtc: Pass MC146818RtcState instead of ISADevice argument

rtc_get_memory() and rtc_set_memory() methods can not take any
TYPE_ISA_DEVICE object. They expect a TYPE_MC146818_RTC one.

Simplify the API by passing a MC146818RtcState.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230210233116.80311-3-philmd@linaro.org>
hw/i386/microvm.c
hw/i386/pc.c
hw/i386/x86.c
hw/ppc/prep.c
hw/rtc/mc146818rtc.c
include/hw/rtc/mc146818rtc.h