summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/thread_state.hh
diff options
context:
space:
mode:
authorSoumyaroop Roy <sroy@cse.usf.edu>2009-09-16 09:47:38 -0400
committerSoumyaroop Roy <sroy@cse.usf.edu>2009-09-16 09:47:38 -0400
commit83eebe046481eeefe3ed9f63f63a87a78ae9fb03 (patch)
tree81716dcef6070c9fe32a0f58da0292107ac93ed4 /src/cpu/inorder/thread_state.hh
parent649917411554032c10c695a9b5d51abd858320e5 (diff)
downloadgem5-83eebe046481eeefe3ed9f63f63a87a78ae9fb03.tar.xz
inorder-smt: remove hardcoded values
allows for the 2T hello world example to work in inorder model
Diffstat (limited to 'src/cpu/inorder/thread_state.hh')
-rw-r--r--src/cpu/inorder/thread_state.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/inorder/thread_state.hh b/src/cpu/inorder/thread_state.hh
index 0571b6e04..422df30aa 100644
--- a/src/cpu/inorder/thread_state.hh
+++ b/src/cpu/inorder/thread_state.hh
@@ -78,13 +78,13 @@ class InOrderThreadState : public ThreadState {
#if FULL_SYSTEM
InOrderThreadState(InOrderCPU *_cpu, ThreadID _thread_num)
- : ThreadState(reinterpret_cast<BaseCPU*>(_cpu), 0/*_thread_num*/),
+ : ThreadState(reinterpret_cast<BaseCPU*>(_cpu), _thread_num),
cpu(_cpu), inSyscall(0), trapPending(0)
{ }
#else
InOrderThreadState(InOrderCPU *_cpu, ThreadID _thread_num,
Process *_process)
- : ThreadState(reinterpret_cast<BaseCPU*>(_cpu), 0/*_thread_num*/,
+ : ThreadState(reinterpret_cast<BaseCPU*>(_cpu), _thread_num,
_process),
cpu(_cpu), inSyscall(0), trapPending(0)
{ }
@@ -105,7 +105,7 @@ class InOrderThreadState : public ThreadState {
/** Returns a pointer to the TC of this thread. */
ThreadContext *getTC() { return tc; }
- int readTid() { return 0; }
+ int readTid() { return threadId(); }
/** Pointer to the last graduated instruction in the thread */
//DynInstPtr lastGradInst;