summaryrefslogtreecommitdiff
path: root/src/cpu/testers/rubytest
diff options
context:
space:
mode:
authorLisa Hsu <Lisa.Hsu@amd.com>2011-03-31 17:17:51 -0700
committerLisa Hsu <Lisa.Hsu@amd.com>2011-03-31 17:17:51 -0700
commit06fcaf9104cefe5a2c0062b9357dae46bfd9992a (patch)
treeacc6e9c0fb5d39670550115df4db67115fe88110 /src/cpu/testers/rubytest
parentc9621cc69b63e881ded95aca4a260462565e3544 (diff)
downloadgem5-06fcaf9104cefe5a2c0062b9357dae46bfd9992a.tar.xz
Ruby: have the rubytester pass contextId to Ruby.
Diffstat (limited to 'src/cpu/testers/rubytest')
-rw-r--r--src/cpu/testers/rubytest/Check.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/testers/rubytest/Check.cc b/src/cpu/testers/rubytest/Check.cc
index b536e2287..c0007cd98 100644
--- a/src/cpu/testers/rubytest/Check.cc
+++ b/src/cpu/testers/rubytest/Check.cc
@@ -104,6 +104,7 @@ Check::initiatePrefetch()
// Prefetches are assumed to be 0 sized
Request *req = new Request(m_address.getAddress(), 0, flags, curTick(),
m_pc.getAddress());
+ req->setThreadContext(index, 0);
PacketPtr pkt = new Packet(req, cmd, port->idx);
@@ -177,6 +178,7 @@ Check::initiateAction()
Request *req = new Request(writeAddr.getAddress(), 1, flags, curTick(),
m_pc.getAddress());
+ req->setThreadContext(index, 0);
Packet::Command cmd;
// 1 out of 8 chance, issue an atomic rather than a write
@@ -242,6 +244,7 @@ Check::initiateCheck()
Request *req = new Request(m_address.getAddress(), CHECK_SIZE, flags,
curTick(), m_pc.getAddress());
+ req->setThreadContext(index, 0);
PacketPtr pkt = new Packet(req, MemCmd::ReadReq, port->idx);
uint8_t* dataArray = new uint8_t[CHECK_SIZE];
pkt->dataDynamicArray(dataArray);