From ebe5f0df9a6158ec4ed84429d1619f388eb1388b Mon Sep 17 00:00:00 2001 From: Sean Wilson Date: Wed, 7 Jun 2017 12:13:16 -0500 Subject: cpu, gpu-compute: Replace EventWrapper use with EventFunctionWrapper Change-Id: Idd5992463bcf9154f823b82461070d1f1842cea3 Signed-off-by: Sean Wilson Reviewed-on: https://gem5-review.googlesource.com/3746 Reviewed-by: Anthony Gutierrez Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/cpu/simple/timing.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cpu/simple/timing.hh') diff --git a/src/cpu/simple/timing.hh b/src/cpu/simple/timing.hh index eebf884ca..8498630b4 100644 --- a/src/cpu/simple/timing.hh +++ b/src/cpu/simple/timing.hh @@ -159,7 +159,8 @@ class TimingSimpleCPU : public BaseSimpleCPU public: TimingCPUPort(const std::string& _name, TimingSimpleCPU* _cpu) - : MasterPort(_name, _cpu), cpu(_cpu), retryRespEvent(this) + : MasterPort(_name, _cpu), cpu(_cpu), + retryRespEvent([this]{ sendRetryResp(); }, name()) { } protected: @@ -176,7 +177,7 @@ class TimingSimpleCPU : public BaseSimpleCPU void schedule(PacketPtr _pkt, Tick t); }; - EventWrapper retryRespEvent; + EventFunctionWrapper retryRespEvent; }; class IcachePort : public TimingCPUPort @@ -315,8 +316,7 @@ class TimingSimpleCPU : public BaseSimpleCPU private: - typedef EventWrapper FetchEvent; - FetchEvent fetchEvent; + EventFunctionWrapper fetchEvent; struct IprEvent : Event { Packet *pkt; -- cgit v1.2.3