summaryrefslogtreecommitdiff
path: root/src/cpu/o3/cpu.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2009-04-15 13:18:24 -0700
committerSteve Reinhardt <steve.reinhardt@amd.com>2009-04-15 13:18:24 -0700
commit7617dcf736b5b96d44aedccd51550be037e7b937 (patch)
treec45e67e334b961f1e9df6aecfef0a2061c393162 /src/cpu/o3/cpu.cc
parent48d4ca522a2f771188d93a2d5ff54cf505a8ca41 (diff)
downloadgem5-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/o3/cpu.cc')
-rw-r--r--src/cpu/o3/cpu.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc
index 1d7fb97c0..6a39f07be 100644
--- a/src/cpu/o3/cpu.cc
+++ b/src/cpu/o3/cpu.cc
@@ -356,7 +356,6 @@ FullO3CPU<Impl>::FullO3CPU(DerivO3CPUParams *params)
// SMT is not supported in FS mode yet.
assert(this->numThreads == 1);
this->thread[i] = new Thread(this, 0);
- this->thread[i]->setStatus(ThreadContext::Suspended);
#else
if (i < params->workload.size()) {
DPRINTF(O3CPU, "Workload[%i] process is %#x",
@@ -365,8 +364,6 @@ FullO3CPU<Impl>::FullO3CPU(DerivO3CPUParams *params)
(typename Impl::O3CPU *)(this),
i, params->workload[i], i);
- this->thread[i]->setStatus(ThreadContext::Suspended);
-
//usedTids[i] = true;
//threadMap[i] = i;
} else {