Deleted Added
sdiff udiff text old ( 11222:c6461e8dfc0a ) new ( 11393:48b748cc6497 )
full compact
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 numSuppressed(0)
68{
69}
70
71TrafficGen*
72TrafficGenParams::create()
73{
74 return new TrafficGen(this);
75}

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

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());
202
203 ++numSuppressed;
204 if (numSuppressed % 10000)
205 warn("%s suppressed %d packets with non-memory addresses\n",
206 name(), numSuppressed);
207
208 delete pkt->req;
209 delete pkt;
210 pkt = nullptr;
211 }
212 }
213
214 // if we are waiting for a retry, do not schedule any further
215 // events, in the case of a transition or a successful send, go

--- 325 unchanged lines hidden ---