From 4768c72964569824356ec01aa53bddb3fe4e1a78 Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Fri, 20 Feb 2004 16:51:19 -0500 Subject: Fix the RTC code so it is in the cchip, only interrupt processors that are present dev/tsunami_cchip.cc: Only need to interrupt processors that are there Move RTC interrupt code into a function dev/tsunami_cchip.hh: Make a RTC interrupt function, move variables out of public scope dev/tsunami_io.cc: Make a call to the RTC interrupt routine instead --HG-- extra : convert_revision : 88113664d0e54a7dddc00ec11ff9b9d088232b31 --- dev/tsunami_io.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'dev/tsunami_io.cc') diff --git a/dev/tsunami_io.cc b/dev/tsunami_io.cc index 41acf1fae..d32291d0d 100644 --- a/dev/tsunami_io.cc +++ b/dev/tsunami_io.cc @@ -65,15 +65,8 @@ TsunamiIO::RTCEvent::process() DPRINTF(MC146818, "RTC Timer Interrupt\n"); schedule(curTick + ticksPerSecond/RTC_RATE); //Actually interrupt the processor here - int size = tsunami->intrctrl->cpu->system->execContexts.size(); + tsunami->cchip->postRTC(); - for (int i = 0; i < size; i++) { - if (!tsunami->cchip->RTCInterrupting[i]) { - tsunami->cchip->misc |= 16 << i; - tsunami->cchip->RTCInterrupting[i] = true; - tsunami->intrctrl->post(i, TheISA::INTLEVEL_IRQ2, 0); - } - } } const char * -- cgit v1.2.3