Probe is now in. You currently can't probe uncacheable (of course it doesn't make...
authorErik Hallnor <ehallnor@umich.edu>
Wed, 22 Oct 2003 04:22:25 +0000 (00:22 -0400)
committerErik Hallnor <ehallnor@umich.edu>
Wed, 22 Oct 2003 04:22:25 +0000 (00:22 -0400)
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

cpu/memtest/memtest.cc

index 15e47e416c1b880d105adfaadc59e8993b8ecb64..b6224996edfa91c4f6a8822d86d9393fca9aa393 100644 (file)
@@ -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];