summaryrefslogtreecommitdiff
path: root/cpu/memtest/memtest.cc
diff options
context:
space:
mode:
authorErik Hallnor <ehallnor@umich.edu>2003-10-22 00:22:25 -0400
committerErik Hallnor <ehallnor@umich.edu>2003-10-22 00:22:25 -0400
commit26ababf2f27e75a42a10f3ee54b706d786c37f70 (patch)
treee4c8885b29d84ec7cb19dfccf0b76c3c973eb0b9 /cpu/memtest/memtest.cc
parentc0162074c657d1798b97f521b6ac309e8e6cc74b (diff)
downloadgem5-26ababf2f27e75a42a10f3ee54b706d786c37f70.tar.xz
Probe is now in. You currently can't probe uncacheable (of course it doesn't make much sense either.
Also, probe doesn't currently support compressed data, but will as soon as I encapsulate the calls more. cpu/memtest/memtest.cc: Change memtest to not do probes on uncacheables. --HG-- extra : convert_revision : 28ca4f793562e55da75e8b7fc3852bb5b1328ea9
Diffstat (limited to 'cpu/memtest/memtest.cc')
-rw-r--r--cpu/memtest/memtest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/memtest/memtest.cc b/cpu/memtest/memtest.cc
index 15e47e416..b6224996e 100644
--- a/cpu/memtest/memtest.cc
+++ b/cpu/memtest/memtest.cc
@@ -213,7 +213,6 @@ MemTest::tick()
uint64_t data = random();
unsigned access_size = random() % 4;
unsigned cacheable = rand() % 100;
- unsigned probe = rand() % 2;
MemReqPtr req = new MemReq();
@@ -223,6 +222,7 @@ MemTest::tick()
} else {
req->paddr = ((base) ? baseAddr1 : baseAddr2) + offset1;
}
+ bool probe = (rand() % 2 == 1) && !req->isUncacheable();
req->size = 1 << access_size;
req->data = new uint8_t[req->size];