diff options
author | Andrew Schultz <alschult@umich.edu> | 2004-02-16 01:07:16 -0500 |
---|---|---|
committer | Andrew Schultz <alschult@umich.edu> | 2004-02-16 01:07:16 -0500 |
commit | 484a4de65af86a86f436a50bc0ef88ea76447cf0 (patch) | |
tree | da10271ceb6db49765b88b38879d4875affca568 /dev | |
parent | b82bd8fd78ba7b45b6bc9f9d4b768088d30c76ca (diff) | |
download | gem5-484a4de65af86a86f436a50bc0ef88ea76447cf0.tar.xz |
Added new aic register definition, fix some interrupt related calls
dev/tsunami_cchip.cc:
Change interrupt level to 20 for devices
--HG--
extra : convert_revision : deee68d5434643dc751de08e5a804c14d1a86efd
Diffstat (limited to 'dev')
-rw-r--r-- | dev/tsunami_cchip.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/tsunami_cchip.cc b/dev/tsunami_cchip.cc index 375664be0..4d436e895 100644 --- a/dev/tsunami_cchip.cc +++ b/dev/tsunami_cchip.cc @@ -188,14 +188,14 @@ TsunamiCChip::write(MemReqPtr &req, const uint8_t *data) // The bit is now set and it wasn't before (set) if((dim[number] & bitvector) && (dir[number] & bitvector)) { - tsunami->intrctrl->post(number, TheISA::INTLEVEL_IRQ1, x); + tsunami->intrctrl->post(number, TheISA::INTLEVEL_IRQ0, x); DPRINTF(Tsunami, "posting dir interrupt to cpu 0\n"); } else if (!(dir[number] & bitvector)) { // The bit was set and now its now clear and // we were interrupting on that bit before - tsunami->intrctrl->clear(number, TheISA::INTLEVEL_IRQ1, x); + tsunami->intrctrl->clear(number, TheISA::INTLEVEL_IRQ0, x); DPRINTF(Tsunami, "dim write resulting in clear" "dir interrupt to cpu 0\n"); @@ -249,7 +249,7 @@ TsunamiCChip::postDRIR(uint32_t interrupt) for(int i=0; i < Tsunami::Max_CPUs; i++) { dir[i] = dim[i] & drir; if (dim[i] & bitvector) { - tsunami->intrctrl->post(i, TheISA::INTLEVEL_IRQ1, interrupt); + tsunami->intrctrl->post(i, TheISA::INTLEVEL_IRQ0, interrupt); DPRINTF(Tsunami, "posting dir interrupt to cpu %d," "interrupt %d\n",i, interrupt); } @@ -265,7 +265,7 @@ TsunamiCChip::clearDRIR(uint32_t interrupt) drir &= ~bitvector; for(int i=0; i < Tsunami::Max_CPUs; i++) { if (dir[i] & bitvector) { - tsunami->intrctrl->clear(i, TheISA::INTLEVEL_IRQ1, interrupt); + tsunami->intrctrl->clear(i, TheISA::INTLEVEL_IRQ0, interrupt); DPRINTF(Tsunami, "clearing dir interrupt to cpu %d," "interrupt %d\n",i, interrupt); |