From 7d932dfdc5ebc07a7bfed9c01e587c9c7e9b6e26 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sun, 13 Jun 2010 14:15:40 +0200 Subject: 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 Signed-off-by: Blue Swirl --- hw/hpet_emul.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hw/hpet_emul.h') diff --git a/hw/hpet_emul.h b/hw/hpet_emul.h index 785f850dbb..9c268ccae4 100644 --- a/hw/hpet_emul.h +++ b/hw/hpet_emul.h @@ -47,8 +47,4 @@ #define HPET_TN_INT_ROUTE_CAP_SHIFT 32 #define HPET_TN_CFG_BITS_READONLY_OR_RESERVED 0xffff80b1U -#if defined TARGET_I386 -extern uint32_t hpet_in_legacy_mode(void); -#endif - #endif -- cgit v1.2.3