summaryrefslogtreecommitdiff
path: root/dev/tsunami_io.cc
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2004-02-20 16:51:19 -0500
committerRon Dreslinski <rdreslin@umich.edu>2004-02-20 16:51:19 -0500
commit4768c72964569824356ec01aa53bddb3fe4e1a78 (patch)
tree30448791ea31a6d7f7ce536eb3093f222b2c7450 /dev/tsunami_io.cc
parentdb940dd0b08f020326c20bc983af5d3483656491 (diff)
downloadgem5-4768c72964569824356ec01aa53bddb3fe4e1a78.tar.xz
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
Diffstat (limited to 'dev/tsunami_io.cc')
-rw-r--r--dev/tsunami_io.cc9
1 files changed, 1 insertions, 8 deletions
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 *