make some changes to bonnie - now that the simulator uses more memory the old config...
[gem5.git] / dev / tsunami_cchip.cc
index 823d1f11848e2cfb0fabc1d4c8d3d7e04cea9491..2fb293fbf70feccec4c84c89ea543447ea38b8a1 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");
+              *(uint32_t*)data = drir;
+          } else
+              panic("invalid access size(?) for tsunami register!\n");
+          return No_Fault;
       case sizeof(uint16_t):
       case sizeof(uint8_t):
       default: