cpu: Add HTM ExecContext API
[gem5.git] / src / cpu / smt.hh
index 9c52abf955d0a11a1e3c21af49854c3a9b1b409d..50c2ce68e0d50486a8b78d1d90e0afd93eba2a6f 100644 (file)
@@ -34,6 +34,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
@@ -50,10 +52,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__