diff options
Diffstat (limited to 'dev/tsunami_io.cc')
-rw-r--r-- | dev/tsunami_io.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dev/tsunami_io.cc b/dev/tsunami_io.cc index fa87a72c4..41acf1fae 100644 --- a/dev/tsunami_io.cc +++ b/dev/tsunami_io.cc @@ -65,10 +65,14 @@ TsunamiIO::RTCEvent::process() DPRINTF(MC146818, "RTC Timer Interrupt\n"); schedule(curTick + ticksPerSecond/RTC_RATE); //Actually interrupt the processor here - if (!tsunami->cchip->RTCInterrupting) { - tsunami->cchip->misc |= 1 << 7; - tsunami->cchip->RTCInterrupting = true; - tsunami->intrctrl->post(0, TheISA::INTLEVEL_IRQ2, 0); + int size = tsunami->intrctrl->cpu->system->execContexts.size(); + + 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); + } } } |