traffic_gen.cc (9814:7ad2b0186a32) traffic_gen.cc (10051:6157b07daac7)
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

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

114 DPRINTF(TrafficGen,
115 "Traffic generator is only active in timing mode\n");
116 }
117}
118
119unsigned int
120TrafficGen::drain(DrainManager *dm)
121{
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

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

114 DPRINTF(TrafficGen,
115 "Traffic generator is only active in timing mode\n");
116 }
117}
118
119unsigned int
120TrafficGen::drain(DrainManager *dm)
121{
122 if (!updateEvent.scheduled()) {
123 // no event has been scheduled yet (e.g. switched from atomic mode)
124 return 0;
125 }
126
122 if (retryPkt == NULL) {
123 // shut things down
124 nextPacketTick = MaxTick;
125 nextTransitionTick = MaxTick;
126 deschedule(updateEvent);
127 return 0;
128 } else {
129 drainManager = dm;

--- 312 unchanged lines hidden ---
127 if (retryPkt == NULL) {
128 // shut things down
129 nextPacketTick = MaxTick;
130 nextTransitionTick = MaxTick;
131 deschedule(updateEvent);
132 return 0;
133 } else {
134 drainManager = dm;

--- 312 unchanged lines hidden ---