RubyDirectedTester.cc (9294:8fb03b13de02) | RubyDirectedTester.cc (11320:42ecb523c64a) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 79 unchanged lines hidden (view full) --- 88 return *ports[idx]; 89 } 90} 91 92bool 93RubyDirectedTester::CpuPort::recvTimingResp(PacketPtr pkt) 94{ 95 tester->hitCallback(id, pkt->getAddr()); | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 79 unchanged lines hidden (view full) --- 88 return *ports[idx]; 89 } 90} 91 92bool 93RubyDirectedTester::CpuPort::recvTimingResp(PacketPtr pkt) 94{ 95 tester->hitCallback(id, pkt->getAddr()); |
96 | 96 |
97 // 98 // Now that the tester has completed, delete the packet, then return 99 // 100 delete pkt->req; 101 delete pkt; 102 return true; 103} 104 --- 8 unchanged lines hidden (view full) --- 113void 114RubyDirectedTester::hitCallback(NodeID proc, Addr addr) 115{ 116 DPRINTF(DirectedTest, 117 "completed request for proc: %d addr: 0x%x\n", 118 proc, 119 addr); 120 | 97 // 98 // Now that the tester has completed, delete the packet, then return 99 // 100 delete pkt->req; 101 delete pkt; 102 return true; 103} 104 --- 8 unchanged lines hidden (view full) --- 113void 114RubyDirectedTester::hitCallback(NodeID proc, Addr addr) 115{ 116 DPRINTF(DirectedTest, 117 "completed request for proc: %d addr: 0x%x\n", 118 proc, 119 addr); 120 |
121 generator->performCallback(proc, addr); | 121 generator->performCallback(proc, addr); |
122 schedule(directedStartEvent, curTick()); 123} 124 125void 126RubyDirectedTester::wakeup() 127{ 128 if (m_requests_completed < m_requests_to_complete) { 129 if (!generator->initiate()) { --- 12 unchanged lines hidden --- | 122 schedule(directedStartEvent, curTick()); 123} 124 125void 126RubyDirectedTester::wakeup() 127{ 128 if (m_requests_completed < m_requests_to_complete) { 129 if (!generator->initiate()) { --- 12 unchanged lines hidden --- |