changeset 0f7957bb4450 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=0f7957bb4450
description:
        inorder-smt: remove hardcoded values
        allows for the 2T hello world example to work in inorder model

diffstat:

1 file changed, 3 insertions(+), 3 deletions(-)
src/cpu/inorder/thread_state.hh |    6 +++---

diffs (28 lines):

diff -r 0b72f4f7c814 -r 0f7957bb4450 src/cpu/inorder/thread_state.hh
--- a/src/cpu/inorder/thread_state.hh   Wed Sep 16 09:46:26 2009 -0400
+++ b/src/cpu/inorder/thread_state.hh   Wed Sep 16 09:47:38 2009 -0400
@@ -78,13 +78,13 @@
 
 #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 @@
     /** 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;
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to