projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make some changes to bonnie - now that the simulator uses more memory the old config...
[gem5.git]
/
dev
/
tsunami_cchip.cc
diff --git
a/dev/tsunami_cchip.cc
b/dev/tsunami_cchip.cc
index a1f90015374ebd266ee512dd72891a1f8f8a802e..2fb293fbf70feccec4c84c89ea543447ea38b8a1 100644
(file)
--- a/
dev/tsunami_cchip.cc
+++ b/
dev/tsunami_cchip.cc
@@
-51,7
+51,7
@@
using namespace std;
TsunamiCChip::TsunamiCChip(const string &name, Tsunami *t, Addr a,
MemoryController *mmu, HierParams *hier, Bus* bus,
Tick pio_latency)
TsunamiCChip::TsunamiCChip(const string &name, Tsunami *t, Addr a,
MemoryController *mmu, HierParams *hier, Bus* bus,
Tick pio_latency)
- : PioDevice(name), addr(a), tsunami(t)
+ : PioDevice(name
, t
), addr(a), tsunami(t)
{
mmu->add_child(this, RangeSize(addr, size));
{
mmu->add_child(this, RangeSize(addr, size));
@@
-173,6
+173,13
@@
TsunamiCChip::read(MemReqPtr &req, uint8_t *data)
break;
case sizeof(uint32_t):
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:
case sizeof(uint16_t):
case sizeof(uint8_t):
default: