diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2009-04-15 13:18:24 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2009-04-15 13:18:24 -0700 |
commit | 7617dcf736b5b96d44aedccd51550be037e7b937 (patch) | |
tree | c45e67e334b961f1e9df6aecfef0a2061c393162 /src/cpu/inorder | |
parent | 48d4ca522a2f771188d93a2d5ff54cf505a8ca41 (diff) | |
download | gem5-7617dcf736b5b96d44aedccd51550be037e7b937.tar.xz |
ThreadState: initialize status to Halted in constructor.
This provides a common initial status for all threads independent
of CPU model (unlike the prior situation where CPUs initialized
threads to inconsistent states).
This mostly matters for SE mode; in FS mode, ISA-specific startupCPU()
methods generally handle boot-time initialization of thread contexts
(since the right thing to do is ISA-dependent).
Diffstat (limited to 'src/cpu/inorder')
-rw-r--r-- | src/cpu/inorder/cpu.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cpu/inorder/cpu.cc b/src/cpu/inorder/cpu.cc index 70877aae4..9e3843e20 100644 --- a/src/cpu/inorder/cpu.cc +++ b/src/cpu/inorder/cpu.cc @@ -193,10 +193,6 @@ InOrderCPU::InOrderCPU(Params *params) i, this->thread[i]); this->thread[i] = new Thread(this, i, params->workload[i], i); - - // Start thread's off in "Suspended" status - this->thread[i]->setStatus(ThreadContext::Suspended); - } else { //Allocate Empty thread so M5 can use later //when scheduling threads to CPU |