diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2004-01-28 19:18:29 -0500 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2004-01-28 19:18:29 -0500 |
commit | d41c904402fb9943e9a17ccbdedfaf8f26633e79 (patch) | |
tree | 5b2da11fe4a17f84099782b7f30e5caff5bc0571 /dev/tsunami_io.hh | |
parent | b6fba57065d42f12274e83d885a3af048e2daa78 (diff) | |
download | gem5-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.hh | 6 |
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 §ion); }; |