summaryrefslogtreecommitdiff
path: root/src/cpu/testers/traffic_gen
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/testers/traffic_gen')
-rw-r--r--src/cpu/testers/traffic_gen/traffic_gen.cc4
-rw-r--r--src/cpu/testers/traffic_gen/traffic_gen.hh4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/testers/traffic_gen/traffic_gen.cc b/src/cpu/testers/traffic_gen/traffic_gen.cc
index 1a12b7675..9d8732902 100644
--- a/src/cpu/testers/traffic_gen/traffic_gen.cc
+++ b/src/cpu/testers/traffic_gen/traffic_gen.cc
@@ -61,14 +61,14 @@ TrafficGen::TrafficGen(const TrafficGenParams* p)
configFile(p->config_file),
elasticReq(p->elastic_req),
progressCheck(p->progress_check),
- noProgressEvent(this),
+ noProgressEvent([this]{ noProgress(); }, name()),
nextTransitionTick(0),
nextPacketTick(0),
currState(0),
port(name() + ".port", *this),
retryPkt(NULL),
retryPktTick(0),
- updateEvent(this),
+ updateEvent([this]{ update(); }, name()),
numSuppressed(0)
{
}
diff --git a/src/cpu/testers/traffic_gen/traffic_gen.hh b/src/cpu/testers/traffic_gen/traffic_gen.hh
index 6b3ccbe30..b2039bef9 100644
--- a/src/cpu/testers/traffic_gen/traffic_gen.hh
+++ b/src/cpu/testers/traffic_gen/traffic_gen.hh
@@ -152,7 +152,7 @@ class TrafficGen : public MemObject
/**
* Event to keep track of our progress, or lack thereof.
*/
- EventWrapper<TrafficGen, &TrafficGen::noProgress> noProgressEvent;
+ EventFunctionWrapper noProgressEvent;
/** Time of next transition */
Tick nextTransitionTick;
@@ -206,7 +206,7 @@ class TrafficGen : public MemObject
Tick retryPktTick;
/** Event for scheduling updates */
- EventWrapper<TrafficGen, &TrafficGen::update> updateEvent;
+ EventFunctionWrapper updateEvent;
uint64_t numSuppressed;