cpu: Add support for CMOs in the cpu models
[gem5.git] / src / cpu / simple / atomic.hh
index cdc1890de5468d4fd9e6e243d0557368fe38135c..c9dd954bb098c669f955c063376ae7b90ddbf9fa 100644 (file)
@@ -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;