diff options
Diffstat (limited to 'src/cpu/testers')
-rw-r--r-- | src/cpu/testers/memtest/memtest.cc | 6 | ||||
-rw-r--r-- | src/cpu/testers/memtest/memtest.hh | 6 | ||||
-rw-r--r-- | src/cpu/testers/traffic_gen/traffic_gen.cc | 4 | ||||
-rw-r--r-- | src/cpu/testers/traffic_gen/traffic_gen.hh | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/cpu/testers/memtest/memtest.cc b/src/cpu/testers/memtest/memtest.cc index 46387fa01..6f3f9b36f 100644 --- a/src/cpu/testers/memtest/memtest.cc +++ b/src/cpu/testers/memtest/memtest.cc @@ -86,9 +86,9 @@ MemTest::sendPkt(PacketPtr pkt) { MemTest::MemTest(const Params *p) : MemObject(p), - tickEvent(this), - noRequestEvent(this), - noResponseEvent(this), + tickEvent([this]{ tick(); }, name()), + noRequestEvent([this]{ noRequest(); }, name()), + noResponseEvent([this]{ noResponse(); }, name()), port("port", *this), retryPkt(nullptr), size(p->size), diff --git a/src/cpu/testers/memtest/memtest.hh b/src/cpu/testers/memtest/memtest.hh index daed5e5d2..023b878c9 100644 --- a/src/cpu/testers/memtest/memtest.hh +++ b/src/cpu/testers/memtest/memtest.hh @@ -84,15 +84,15 @@ class MemTest : public MemObject void tick(); - EventWrapper<MemTest, &MemTest::tick> tickEvent; + EventFunctionWrapper tickEvent; void noRequest(); - EventWrapper<MemTest, &MemTest::noRequest> noRequestEvent; + EventFunctionWrapper noRequestEvent; void noResponse(); - EventWrapper<MemTest, &MemTest::noResponse> noResponseEvent; + EventFunctionWrapper noResponseEvent; class CpuPort : public MasterPort { 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; |