RubyTester.cc (9475:736909f5c13b) RubyTester.cc (9542:683991c46ac8)
1/*
1/*
2 * Copyright (c) 2012 ARM Limited
2 * Copyright (c) 2012-2013 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 133 unchanged lines hidden (view full) ---

144}
145
146bool
147RubyTester::CpuPort::recvTimingResp(PacketPtr pkt)
148{
149 // retrieve the subblock and call hitCallback
150 RubyTester::SenderState* senderState =
151 safe_cast<RubyTester::SenderState*>(pkt->senderState);
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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

--- 133 unchanged lines hidden (view full) ---

144}
145
146bool
147RubyTester::CpuPort::recvTimingResp(PacketPtr pkt)
148{
149 // retrieve the subblock and call hitCallback
150 RubyTester::SenderState* senderState =
151 safe_cast<RubyTester::SenderState*>(pkt->senderState);
152 SubBlock* subblock = senderState->subBlock;
153 assert(subblock != NULL);
152 SubBlock& subblock = senderState->subBlock;
154
153
155 // pop the sender state from the packet
156 pkt->senderState = senderState->saved;
154 tester->hitCallback(id, &subblock);
157
155
158 tester->hitCallback(id, subblock);
159
160 // Now that the tester has completed, delete the senderState
161 // (includes sublock) and the packet, then return
156 // Now that the tester has completed, delete the senderState
157 // (includes sublock) and the packet, then return
162 delete senderState;
158 delete pkt->senderState;
163 delete pkt->req;
164 delete pkt;
165 return true;
166}
167
168bool
169RubyTester::isInstReadableCpuPort(int idx)
170{

--- 84 unchanged lines hidden ---
159 delete pkt->req;
160 delete pkt;
161 return true;
162}
163
164bool
165RubyTester::isInstReadableCpuPort(int idx)
166{

--- 84 unchanged lines hidden ---