summaryrefslogtreecommitdiff
path: root/dev/tsunami_io.hh
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2004-01-28 19:18:29 -0500
committerRon Dreslinski <rdreslin@umich.edu>2004-01-28 19:18:29 -0500
commitd41c904402fb9943e9a17ccbdedfaf8f26633e79 (patch)
tree5b2da11fe4a17f84099782b7f30e5caff5bc0571 /dev/tsunami_io.hh
parentb6fba57065d42f12274e83d885a3af048e2daa78 (diff)
downloadgem5-d41c904402fb9943e9a17ccbdedfaf8f26633e79.tar.xz
Add support for PIC interrupts in IO, and DIRx interrupts in CChip
dev/tsunami_cchip.cc: dev/tsunami_cchip.hh: Add Interrupt capabilities for DIRx, added postDRIR and clearDRIR functions dev/tsunami_io.cc: Add PIC interrupts, and post/clearPIC functions dev/tsunami_io.hh: Add support for PIC interrupts, added post/clearPIC functions --HG-- extra : convert_revision : b705568670b157c1a4496c365226526fa96e21e0
Diffstat (limited to 'dev/tsunami_io.hh')
-rw-r--r--dev/tsunami_io.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/tsunami_io.hh b/dev/tsunami_io.hh
index 9706dea25..97589e5f0 100644
--- a/dev/tsunami_io.hh
+++ b/dev/tsunami_io.hh
@@ -90,6 +90,9 @@ class TsunamiIO : public MmapDevice
uint8_t mode1;
uint8_t mode2;
+ uint8_t picr; //Raw PIC interrput register, before masking
+ bool picInterrupting;
+
Tsunami *tsunami;
/* This timer is initilized, but after I wrote the code
@@ -121,6 +124,9 @@ class TsunamiIO : public MmapDevice
virtual Fault read(MemReqPtr req, uint8_t *data);
virtual Fault write(MemReqPtr req, const uint8_t *data);
+ void postPIC(uint8_t bitvector);
+ void clearPIC(uint8_t bitvector);
+
virtual void serialize(std::ostream &os);
virtual void unserialize(Checkpoint *cp, const std::string &section);
};