get rid of all instances of readTid() and getThreadNum(). Unify and eliminate
[gem5.git] / src / cpu / quiesce_event.cc
index 8dd20db0230614af86f965f5e78f1814234b1a30..38ffb74e4a64b7f1c8599165c1e7eb159073b42e 100644 (file)
  * Authors: Kevin Lim
  */
 
+#include "cpu/base.hh"
 #include "cpu/thread_context.hh"
 #include "cpu/quiesce_event.hh"
 
 EndQuiesceEvent::EndQuiesceEvent(ThreadContext *_tc)
-    : Event(&mainEventQueue), tc(_tc)
+    : tc(_tc)
 {
 }
 
 void
 EndQuiesceEvent::process()
 {
+    DPRINTF(Quiesce, "activating %s\n", tc->getCpuPtr()->name());
     tc->activate();
 }
 
 const char*
-EndQuiesceEvent::description()
+EndQuiesceEvent::description() const
 {
-    return "End Quiesce Event.";
+    return "End Quiesce";
 }