diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2004-02-20 16:51:19 -0500 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2004-02-20 16:51:19 -0500 |
commit | 4768c72964569824356ec01aa53bddb3fe4e1a78 (patch) | |
tree | 30448791ea31a6d7f7ce536eb3093f222b2c7450 /dev/tsunami_cchip.hh | |
parent | db940dd0b08f020326c20bc983af5d3483656491 (diff) | |
download | gem5-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_cchip.hh')
-rw-r--r-- | dev/tsunami_cchip.hh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dev/tsunami_cchip.hh b/dev/tsunami_cchip.hh index a816e723e..adb05a572 100644 --- a/dev/tsunami_cchip.hh +++ b/dev/tsunami_cchip.hh @@ -71,7 +71,11 @@ class TsunamiCChip : public FunctionalMemory * that can occur. */ uint64_t drir; + + uint64_t misc; + uint64_t ipiInterrupting[Tsunami::Max_CPUs]; + bool RTCInterrupting[Tsunami::Max_CPUs]; public: TsunamiCChip(const std::string &name, Tsunami *t, Addr a, @@ -80,14 +84,12 @@ class TsunamiCChip : public FunctionalMemory virtual Fault read(MemReqPtr &req, uint8_t *data); virtual Fault write(MemReqPtr &req, const uint8_t *data); + void postRTC(); void postDRIR(uint32_t interrupt); void clearDRIR(uint32_t interrupt); virtual void serialize(std::ostream &os); virtual void unserialize(Checkpoint *cp, const std::string §ion); - - uint64_t misc; - bool RTCInterrupting[Tsunami::Max_CPUs]; }; #endif // __TSUNAMI_CCHIP_HH__ |