Add Monet configuration, update p4 parameters, couple of typo fixes
authorAli Saidi <saidi@eecs.umich.edu>
Fri, 4 Feb 2005 04:50:57 +0000 (23:50 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Fri, 4 Feb 2005 04:50:57 +0000 (23:50 -0500)
dev/tsunami_cchip.cc:
    add a fake register to tsunami that we can do 32bit reads to.
    Warn on access.

--HG--
extra : convert_revision : d87860f3b527528151c23431556039bca6e12945

configs/boot/devtime.rcS [new file with mode: 0644]
dev/tsunami_cchip.cc

diff --git a/configs/boot/devtime.rcS b/configs/boot/devtime.rcS
new file mode 100644 (file)
index 0000000..91fddc2
--- /dev/null
@@ -0,0 +1,8 @@
+insmod /modules/devtime.ko dataAddr=0x9000004 count=100
+rmmod devtime
+insmod /modules/devtime.ko dataAddr=0x1a0000300 count=100
+rmmod devtime
+insmod /modules/devtime.ko memTest=1 count=100
+rmmod devtime
+m5 exit
+
index 823d1f11848e2cfb0fabc1d4c8d3d7e04cea9491..6bf4d8b578893caabb109b6edaa929253446f0d1 100644 (file)
@@ -173,6 +173,13 @@ TsunamiCChip::read(MemReqPtr &req, uint8_t *data)
 
       break;
       case sizeof(uint32_t):
+          if (regnum == TSDEV_CC_DRIR) {
+              warn("accessing DRIR with 32 bit read, "
+                   "hopefully your just reading this for timing");
+              *(uint64_t*)data = drir;
+          } else
+              panic("invalid access size(?) for tsunami register!\n");
+          return No_Fault;
       case sizeof(uint16_t):
       case sizeof(uint8_t):
       default: