events: Give EventWrapped a default name and description
authorNathan Binkert <nate@binkert.org>
Sat, 27 Feb 2010 02:09:41 +0000 (18:09 -0800)
committerNathan Binkert <nate@binkert.org>
Sat, 27 Feb 2010 02:09:41 +0000 (18:09 -0800)
src/sim/eventq.hh

index 92c38142c0758aaf9b7fe567da7e1fe0c4936bf8..a47c24c4d27deb0b8842ca422143b0bdb6292696 100644 (file)
@@ -466,6 +466,14 @@ class EventWrapper : public Event
     }
 
     void process() { (object->*F)(); }
+
+    const std::string
+    name() const
+    {
+        return object->name() + ".wrapped_event";
+    }
+
+    const char *description() const { return "EventWrapped"; }
 };
 
 inline void