diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2004-01-27 21:36:46 -0500 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2004-01-27 21:36:46 -0500 |
commit | 3ccc0b1f968e3efaeccda65e06f862c899678312 (patch) | |
tree | 56244532839df17d2eebf7c8dc2a2b010565a2e8 /dev/tsunami_io.hh | |
parent | 6f3c09a12c7120b518e1c41d995094538b120ba0 (diff) | |
download | gem5-3ccc0b1f968e3efaeccda65e06f862c899678312.tar.xz |
Add support for RTC to interrupt, HACK in alpha_console temporary
dev/alpha_console.cc:
Fix reference to tlaserclock, HACK FOR NOW
dev/alpha_console.hh:
fix reference to tlaser_clock, HACK FOR NOW
dev/tsunami.cc:
Add proper tsunami chip pointers
dev/tsunami.hh:
add proper tsunami chip pointers add RTC interrupt capabilities
dev/tsunami_cchip.cc:
Add proper Interrupt for RTC
dev/tsunami_cchip.hh:
Add proper interrupt for RTC
dev/tsunami_io.cc:
dev/tsunami_io.hh:
Make RTC interrupt
dev/tsunami_pchip.cc:
dev/tsunami_pchip.hh:
Add back pointer to tsunami
--HG--
extra : convert_revision : 2b0a8616b0bed8d9962ee5ca643dce56b9922d52
Diffstat (limited to 'dev/tsunami_io.hh')
-rw-r--r-- | dev/tsunami_io.hh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/dev/tsunami_io.hh b/dev/tsunami_io.hh index fe904605c..e945eb53d 100644 --- a/dev/tsunami_io.hh +++ b/dev/tsunami_io.hh @@ -72,8 +72,10 @@ class TsunamiIO : public MmapDevice class RTCEvent : public Event { + protected: + Tsunami* tsunami; public: - RTCEvent(); + RTCEvent(Tsunami* t); virtual void process(); virtual const char *description(); @@ -86,6 +88,8 @@ class TsunamiIO : public MmapDevice uint8_t mode1; uint8_t mode2; + Tsunami *tsunami; + /* This timer is initilized, but after I wrote the code it doesn't seem to be used again, and best I can tell it too is not connected to any interrupt port */ @@ -103,9 +107,13 @@ class TsunamiIO : public MmapDevice uint32_t timerData; + uint32_t freq; + public: - TsunamiIO(const std::string &name, /*Tsunami *t,*/ time_t init_time, - Addr addr, Addr mask, MemoryController *mmu); + uint32_t frequency() const { return freq; } + + TsunamiIO(const std::string &name, Tsunami *t, time_t init_time, + Addr addr, Addr mask, uint32_t f, MemoryController *mmu); void set_time(time_t t); |