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
--- 49 unchanged lines hidden (view full) ---
58 configFile(p->config_file),
59 elasticReq(p->elastic_req),
60 nextTransitionTick(0),
61 nextPacketTick(0),
62 currState(0),
63 port(name() + ".port", *this),
64 retryPkt(NULL),
65 retryPktTick(0),
66 updateEvent(this)
67{
68}
69
70TrafficGen*
71TrafficGenParams::create()
72{
73 return new TrafficGen(this);
74}
--- 118 unchanged lines hidden (view full) ---
193 numPackets++;
194 if (!port.sendTimingReq(pkt)) {
195 retryPkt = pkt;
196 retryPktTick = curTick();
197 }
198 } else {
199 DPRINTF(TrafficGen, "Suppressed packet %s 0x%x\n",
200 pkt->cmdString(), pkt->getAddr());
201 delete pkt->req;
202 delete pkt;
203 pkt = nullptr;
204 }
205 }
206
207 // if we are waiting for a retry, do not schedule any further
208 // events, in the case of a transition or a successful send, go
--- 325 unchanged lines hidden ---
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
--- 49 unchanged lines hidden (view full) ---
58 configFile(p->config_file),
59 elasticReq(p->elastic_req),
60 nextTransitionTick(0),
61 nextPacketTick(0),
62 currState(0),
63 port(name() + ".port", *this),
64 retryPkt(NULL),
65 retryPktTick(0),
66 updateEvent(this)
67{
68}
69
70TrafficGen*
71TrafficGenParams::create()
72{
73 return new TrafficGen(this);
74}
--- 118 unchanged lines hidden (view full) ---
193 numPackets++;
194 if (!port.sendTimingReq(pkt)) {
195 retryPkt = pkt;
196 retryPktTick = curTick();
197 }
198 } else {
199 DPRINTF(TrafficGen, "Suppressed packet %s 0x%x\n",
200 pkt->cmdString(), pkt->getAddr());
201 delete pkt->req;
202 delete pkt;
203 pkt = nullptr;
204 }
205 }
206
207 // if we are waiting for a retry, do not schedule any further
208 // events, in the case of a transition or a successful send, go
--- 325 unchanged lines hidden ---