From 8c1ea47b3c2fc90378eb16f3ad92d4ae522567c5 Mon Sep 17 00:00:00 2001 From: Sean Wilson Date: Wed, 28 Jun 2017 08:52:08 -0500 Subject: cpu: Refactor some Event subclasses to lambdas Change-Id: If765c6100d67556f157e4e61aa33c2b7eeb8d2f0 Signed-off-by: Sean Wilson Reviewed-on: https://gem5-review.googlesource.com/3923 Reviewed-by: Jason Lowe-Power Reviewed-by: Andreas Sandberg Maintainer: Jason Lowe-Power --- src/cpu/simple/atomic.hh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/cpu/simple/atomic.hh') diff --git a/src/cpu/simple/atomic.hh b/src/cpu/simple/atomic.hh index cdc1890de..c9dd954bb 100644 --- a/src/cpu/simple/atomic.hh +++ b/src/cpu/simple/atomic.hh @@ -60,16 +60,7 @@ class AtomicSimpleCPU : public BaseSimpleCPU private: - struct TickEvent : public Event - { - AtomicSimpleCPU *cpu; - - TickEvent(AtomicSimpleCPU *c); - void process(); - const char *description() const; - }; - - TickEvent tickEvent; + EventFunctionWrapper tickEvent; const int width; bool locked; -- cgit v1.2.3