diff options
Diffstat (limited to 'src/cpu/testers')
-rw-r--r-- | src/cpu/testers/directedtest/InvalidateGenerator.cc | 2 | ||||
-rw-r--r-- | src/cpu/testers/directedtest/RubyDirectedTester.cc | 2 | ||||
-rw-r--r-- | src/cpu/testers/directedtest/RubyDirectedTester.hh | 2 | ||||
-rw-r--r-- | src/cpu/testers/directedtest/SeriesRequestGenerator.cc | 2 | ||||
-rw-r--r-- | src/cpu/testers/memtest/memtest.cc | 7 | ||||
-rw-r--r-- | src/cpu/testers/memtest/memtest.hh | 4 | ||||
-rw-r--r-- | src/cpu/testers/networktest/networktest.cc | 7 | ||||
-rw-r--r-- | src/cpu/testers/networktest/networktest.hh | 2 | ||||
-rw-r--r-- | src/cpu/testers/rubytest/Check.cc | 8 | ||||
-rw-r--r-- | src/cpu/testers/rubytest/RubyTester.cc | 2 | ||||
-rw-r--r-- | src/cpu/testers/rubytest/RubyTester.hh | 2 |
11 files changed, 19 insertions, 21 deletions
diff --git a/src/cpu/testers/directedtest/InvalidateGenerator.cc b/src/cpu/testers/directedtest/InvalidateGenerator.cc index a89853061..84a90844f 100644 --- a/src/cpu/testers/directedtest/InvalidateGenerator.cc +++ b/src/cpu/testers/directedtest/InvalidateGenerator.cc @@ -80,7 +80,7 @@ InvalidateGenerator::initiate() *dummyData = 0; pkt->dataDynamic(dummyData); - if (port->sendTiming(pkt)) { + if (port->sendTimingReq(pkt)) { DPRINTF(DirectedTest, "initiating request - successful\n"); if (m_status == InvalidateGeneratorStatus_Load_Waiting) { m_status = InvalidateGeneratorStatus_Load_Pending; diff --git a/src/cpu/testers/directedtest/RubyDirectedTester.cc b/src/cpu/testers/directedtest/RubyDirectedTester.cc index b5fe662af..0aba82dd2 100644 --- a/src/cpu/testers/directedtest/RubyDirectedTester.cc +++ b/src/cpu/testers/directedtest/RubyDirectedTester.cc @@ -91,7 +91,7 @@ RubyDirectedTester::getMasterPort(const std::string &if_name, int idx) } bool -RubyDirectedTester::CpuPort::recvTiming(PacketPtr pkt) +RubyDirectedTester::CpuPort::recvTimingResp(PacketPtr pkt) { tester->hitCallback(id, pkt->getAddr()); diff --git a/src/cpu/testers/directedtest/RubyDirectedTester.hh b/src/cpu/testers/directedtest/RubyDirectedTester.hh index 08b034d3f..75e72edf8 100644 --- a/src/cpu/testers/directedtest/RubyDirectedTester.hh +++ b/src/cpu/testers/directedtest/RubyDirectedTester.hh @@ -59,7 +59,7 @@ class RubyDirectedTester : public MemObject {} protected: - virtual bool recvTiming(PacketPtr pkt); + virtual bool recvTimingResp(PacketPtr pkt); virtual void recvRetry() { panic("%s does not expect a retry\n", name()); } }; diff --git a/src/cpu/testers/directedtest/SeriesRequestGenerator.cc b/src/cpu/testers/directedtest/SeriesRequestGenerator.cc index b8c42b67d..abcb0278f 100644 --- a/src/cpu/testers/directedtest/SeriesRequestGenerator.cc +++ b/src/cpu/testers/directedtest/SeriesRequestGenerator.cc @@ -70,7 +70,7 @@ SeriesRequestGenerator::initiate() *dummyData = 0; pkt->dataDynamic(dummyData); - if (port->sendTiming(pkt)) { + if (port->sendTimingReq(pkt)) { DPRINTF(DirectedTest, "initiating request - successful\n"); m_status = SeriesRequestGeneratorStatus_Request_Pending; return true; diff --git a/src/cpu/testers/memtest/memtest.cc b/src/cpu/testers/memtest/memtest.cc index 809b4dd93..642af4677 100644 --- a/src/cpu/testers/memtest/memtest.cc +++ b/src/cpu/testers/memtest/memtest.cc @@ -53,9 +53,8 @@ using namespace std; int TESTER_ALLOCATOR=0; bool -MemTest::CpuPort::recvTiming(PacketPtr pkt) +MemTest::CpuPort::recvTimingResp(PacketPtr pkt) { - assert(pkt->isResponse()); memtest->completeRequest(pkt); return true; } @@ -72,7 +71,7 @@ MemTest::sendPkt(PacketPtr pkt) { cachePort.sendAtomic(pkt); completeRequest(pkt); } - else if (!cachePort.sendTiming(pkt)) { + else if (!cachePort.sendTimingReq(pkt)) { DPRINTF(MemTest, "accessRetry setting to true\n"); // @@ -379,7 +378,7 @@ MemTest::tick() void MemTest::doRetry() { - if (cachePort.sendTiming(retryPkt)) { + if (cachePort.sendTimingReq(retryPkt)) { DPRINTF(MemTest, "accessRetry setting to false\n"); accessRetry = false; retryPkt = NULL; diff --git a/src/cpu/testers/memtest/memtest.hh b/src/cpu/testers/memtest/memtest.hh index 8dccfdc80..450a3e4f1 100644 --- a/src/cpu/testers/memtest/memtest.hh +++ b/src/cpu/testers/memtest/memtest.hh @@ -97,9 +97,9 @@ class MemTest : public MemObject protected: - virtual bool recvTiming(PacketPtr pkt); + virtual bool recvTimingResp(PacketPtr pkt); - virtual bool recvTimingSnoop(PacketPtr pkt) { return true; } + virtual void recvTimingSnoopReq(PacketPtr pkt) { } virtual Tick recvAtomicSnoop(PacketPtr pkt) { return 0; } diff --git a/src/cpu/testers/networktest/networktest.cc b/src/cpu/testers/networktest/networktest.cc index aa8b54b8e..5d0e8e0c9 100644 --- a/src/cpu/testers/networktest/networktest.cc +++ b/src/cpu/testers/networktest/networktest.cc @@ -51,9 +51,8 @@ using namespace std; int TESTER_NETWORK=0; bool -NetworkTest::CpuPort::recvTiming(PacketPtr pkt) +NetworkTest::CpuPort::recvTimingResp(PacketPtr pkt) { - assert(pkt->isResponse()); networktest->completeRequest(pkt); return true; } @@ -67,7 +66,7 @@ NetworkTest::CpuPort::recvRetry() void NetworkTest::sendPkt(PacketPtr pkt) { - if (!cachePort.sendTiming(pkt)) { + if (!cachePort.sendTimingReq(pkt)) { retryPkt = pkt; // RubyPort will retry sending } numPacketsSent++; @@ -269,7 +268,7 @@ NetworkTest::generatePkt() void NetworkTest::doRetry() { - if (cachePort.sendTiming(retryPkt)) { + if (cachePort.sendTimingReq(retryPkt)) { retryPkt = NULL; } } diff --git a/src/cpu/testers/networktest/networktest.hh b/src/cpu/testers/networktest/networktest.hh index 36d311aa8..8b7a89d6f 100644 --- a/src/cpu/testers/networktest/networktest.hh +++ b/src/cpu/testers/networktest/networktest.hh @@ -92,7 +92,7 @@ class NetworkTest : public MemObject protected: - virtual bool recvTiming(PacketPtr pkt); + virtual bool recvTimingResp(PacketPtr pkt); virtual void recvRetry(); }; diff --git a/src/cpu/testers/rubytest/Check.cc b/src/cpu/testers/rubytest/Check.cc index 8188fecbb..98250f042 100644 --- a/src/cpu/testers/rubytest/Check.cc +++ b/src/cpu/testers/rubytest/Check.cc @@ -114,7 +114,7 @@ Check::initiatePrefetch() pkt->senderState = new SenderState(m_address, req->getSize(), pkt->senderState); - if (port->sendTiming(pkt)) { + if (port->sendTimingReq(pkt)) { DPRINTF(RubyTest, "successfully initiated prefetch.\n"); } else { // If the packet did not issue, must delete @@ -154,7 +154,7 @@ Check::initiateFlush() pkt->senderState = new SenderState(m_address, req->getSize(), pkt->senderState); - if (port->sendTiming(pkt)) { + if (port->sendTimingReq(pkt)) { DPRINTF(RubyTest, "initiating Flush - successful\n"); } } @@ -201,7 +201,7 @@ Check::initiateAction() pkt->senderState = new SenderState(writeAddr, req->getSize(), pkt->senderState); - if (port->sendTiming(pkt)) { + if (port->sendTimingReq(pkt)) { DPRINTF(RubyTest, "initiating action - successful\n"); DPRINTF(RubyTest, "status before action update: %s\n", (TesterStatus_to_string(m_status)).c_str()); @@ -253,7 +253,7 @@ Check::initiateCheck() pkt->senderState = new SenderState(m_address, req->getSize(), pkt->senderState); - if (port->sendTiming(pkt)) { + if (port->sendTimingReq(pkt)) { DPRINTF(RubyTest, "initiating check - successful\n"); DPRINTF(RubyTest, "status before check update: %s\n", TesterStatus_to_string(m_status).c_str()); diff --git a/src/cpu/testers/rubytest/RubyTester.cc b/src/cpu/testers/rubytest/RubyTester.cc index 2862a261d..3397b00d0 100644 --- a/src/cpu/testers/rubytest/RubyTester.cc +++ b/src/cpu/testers/rubytest/RubyTester.cc @@ -145,7 +145,7 @@ RubyTester::getMasterPort(const std::string &if_name, int idx) } bool -RubyTester::CpuPort::recvTiming(PacketPtr pkt) +RubyTester::CpuPort::recvTimingResp(PacketPtr pkt) { // retrieve the subblock and call hitCallback RubyTester::SenderState* senderState = diff --git a/src/cpu/testers/rubytest/RubyTester.hh b/src/cpu/testers/rubytest/RubyTester.hh index 5d2202f65..8fbd886b3 100644 --- a/src/cpu/testers/rubytest/RubyTester.hh +++ b/src/cpu/testers/rubytest/RubyTester.hh @@ -62,7 +62,7 @@ class RubyTester : public MemObject {} protected: - virtual bool recvTiming(PacketPtr pkt); + virtual bool recvTimingResp(PacketPtr pkt); virtual void recvRetry() { panic("%s does not expect a retry\n", name()); } }; |