cpu: Correctly call parent on switchOut() and takeOverFrom()
[gem5.git] / src / cpu / smt.hh
index cac1a8fd55829c3d95cade6eb467a010c0d4f6a8..e0993fc2ea2e0608d6dc27a82b4e4c02b19a9026 100644 (file)
@@ -36,6 +36,8 @@
 #ifndef __SMT_HH__
 #define __SMT_HH__
 
+#include "base/types.hh"
+
 #ifndef SMT_MAX_THREADS
 /** The number of TPUs in any processor. */
 #define SMT_MAX_THREADS 4
@@ -52,10 +54,10 @@ extern int maxThreadsPerCPU;
 
 /**
  * Changes the status and priority of the thread with the given number.
- * @param thread_number The thread to change.
+ * @param tid The thread to change.
  * @param activate The new active status.
  * @param priority The new priority.
  */
-void change_thread_state(int thread_number, int activate, int priority);
+void change_thread_state(ThreadID tid, int activate, int priority);
 
 #endif // __SMT_HH__