diff options
Diffstat (limited to 'src/cpu/base.cc')
-rw-r--r-- | src/cpu/base.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/base.cc b/src/cpu/base.cc index 08f95ea49..6f460d3af 100644 --- a/src/cpu/base.cc +++ b/src/cpu/base.cc @@ -229,8 +229,8 @@ BaseCPU::BaseCPU(Params *p, bool is_checker) if (p->function_trace_start == 0) { functionTracingEnabled = true; } else { - typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap; - Event *event = new wrap(this, true); + Event *event = new EventFunctionWrapper( + [this]{ enableFunctionTrace(); }, name(), true); schedule(event, p->function_trace_start); } } |