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
diff --git a/dev/tsunami_io.hh b/dev/tsunami_io.hh
index fe90460..e945eb5 100644
--- a/dev/tsunami_io.hh
+++ b/dev/tsunami_io.hh
@@ -72,8 +72,10 @@
class RTCEvent : public Event
{
+ protected:
+ Tsunami* tsunami;
public:
- RTCEvent();
+ RTCEvent(Tsunami* t);
virtual void process();
virtual const char *description();
@@ -86,6 +88,8 @@
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 @@
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);