traffic_gen.cc (10138:0e40c53fe85c) traffic_gen.cc (10266:d4090f0cab30)
1/*
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

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

182 // if we have reached the time for the next state transition, then
183 // perform the transition
184 if (curTick() >= nextTransitionTick) {
185 transition();
186 } else {
187 assert(curTick() >= nextPacketTick);
188 // get the next packet and try to send it
189 PacketPtr pkt = states[currState]->getNextPacket();
1/*
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

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

182 // if we have reached the time for the next state transition, then
183 // perform the transition
184 if (curTick() >= nextTransitionTick) {
185 transition();
186 } else {
187 assert(curTick() >= nextPacketTick);
188 // get the next packet and try to send it
189 PacketPtr pkt = states[currState]->getNextPacket();
190 numPackets++;
191 if (!port.sendTimingReq(pkt)) {
192 retryPkt = pkt;
193 retryPktTick = curTick();
190
191 // suppress packets that are not destined for a memory, such as
192 // device accesses that could be part of a trace
193 if (system->isMemAddr(pkt->getAddr())) {
194 numPackets++;
195 if (!port.sendTimingReq(pkt)) {
196 retryPkt = pkt;
197 retryPktTick = curTick();
198 }
199 } else {
200 DPRINTF(TrafficGen, "Suppressed packet %s 0x%x\n",
201 pkt->cmdString(), pkt->getAddr());
194 }
195 }
196
197 // if we are waiting for a retry, do not schedule any further
198 // events, in the case of a transition or a successful send, go
199 // ahead and determine when the next update should take place
200 if (retryPkt == NULL) {
201 // schedule next update event based on either the next execute

--- 303 unchanged lines hidden ---
202 }
203 }
204
205 // if we are waiting for a retry, do not schedule any further
206 // events, in the case of a transition or a successful send, go
207 // ahead and determine when the next update should take place
208 if (retryPkt == NULL) {
209 // schedule next update event based on either the next execute

--- 303 unchanged lines hidden ---