summaryrefslogtreecommitdiff
path: root/dev/tsunami_io.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-01-28 18:12:52 -0500
committerAli Saidi <saidi@eecs.umich.edu>2004-01-28 18:12:52 -0500
commitb6fba57065d42f12274e83d885a3af048e2daa78 (patch)
tree62cc0cac418a3e2fe10df6d716e925dad04605e6 /dev/tsunami_io.hh
parent3ccc0b1f968e3efaeccda65e06f862c899678312 (diff)
downloadgem5-b6fba57065d42f12274e83d885a3af048e2daa78.tar.xz
our first interrupt
cpu/exetrace.cc: added looking for symbols at PC+4 and PC+8 thanks to gcc skiping setting the gp where it can and jumping <func>+8 dev/console.cc: commented out weird interrupt per nate's suggestion dev/tsunami_cchip.cc: moved rtc flag to correct bit dev/tsunami_io.cc: time interrupt will be 1024Hz and at some point be configurable by linux dev/tsunami_io.hh: Timer interrupt will be 1024hz for now and in the future be configurable by linux --HG-- extra : convert_revision : 2fcc924c8848eb3c6166d9d517617ed193a2b89a
Diffstat (limited to 'dev/tsunami_io.hh')
-rw-r--r--dev/tsunami_io.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/dev/tsunami_io.hh b/dev/tsunami_io.hh
index e945eb53d..9706dea25 100644
--- a/dev/tsunami_io.hh
+++ b/dev/tsunami_io.hh
@@ -27,12 +27,14 @@
*/
/* @file
- * Tsunnami Fake DMA memory map
+ * Tsunami Fake I/O Space mapping including RTC/timer interrupts
*/
#ifndef __TSUNAMI_DMA_HH__
#define __TSUNAMI_DMA_HH__
+#define RTC_RATE 1024
+
#include "mem/functional_mem/mmap_device.hh"
#include "dev/tsunami.hh"
@@ -107,13 +109,12 @@ class TsunamiIO : public MmapDevice
uint32_t timerData;
- uint32_t freq;
public:
- uint32_t frequency() const { return freq; }
+ uint32_t frequency() const { return RTC_RATE; }
TsunamiIO(const std::string &name, Tsunami *t, time_t init_time,
- Addr addr, Addr mask, uint32_t f, MemoryController *mmu);
+ Addr addr, Addr mask, MemoryController *mmu);
void set_time(time_t t);