]> git.proxmox.com Git - mirror_qemu.git/commit
hpet/rtc: Rework RTC IRQ replacement by HPET
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 13 Jun 2010 12:15:40 +0000 (14:15 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 13 Jun 2010 12:33:00 +0000 (15:33 +0300)
commit7d932dfdc5ebc07a7bfed9c01e587c9c7e9b6e26
treef3fc984cd0abc83b394897c617c1da7d78426a21
parent9cec89e8db494df43faf242a5a030bc6540c89dd
hpet/rtc: Rework RTC IRQ replacement by HPET

Allow the intercept the RTC IRQ for the HPET legacy mode. Then push
routing to IRQ8 completely into the HPET. This allows to turn
hpet_in_legacy_mode() into a private function. Furthermore, this stops
the RTC from clearing IRQ8 even if the HPET is in control.

This patch comes with a side effect: The RTC timers will no longer be
stoppend when there is no IRQ consumer, possibly causing a minor
performance degration. But as the guest may want to redirect the RTC to
the SCI in that mode, it should normally disable unused IRQ source
anyway.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/hpet.c
hw/hpet_emul.h
hw/mc146818rtc.c
hw/mc146818rtc.h
hw/mips_jazz.c
hw/mips_malta.c
hw/mips_r4k.c
hw/pc.c
hw/ppc_prep.c