From 7617dcf736b5b96d44aedccd51550be037e7b937 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Wed, 15 Apr 2009 13:18:24 -0700 Subject: 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). --- src/cpu/checker/cpu.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/cpu/checker/cpu.cc') diff --git a/src/cpu/checker/cpu.cc b/src/cpu/checker/cpu.cc index 14777bc12..1c36ad22d 100644 --- a/src/cpu/checker/cpu.cc +++ b/src/cpu/checker/cpu.cc @@ -75,7 +75,6 @@ CheckerCPU::CheckerCPU(Params *p) thread = new SimpleThread(this, /* thread_num */ 0, process, /* asid */ 0); - thread->setStatus(ThreadContext::Suspended); tc = thread->getTC(); threadContexts.push_back(tc); #endif @@ -95,7 +94,6 @@ CheckerCPU::setSystem(System *system) thread = new SimpleThread(this, 0, systemPtr, itb, dtb, false); - thread->setStatus(ThreadContext::Suspended); tc = thread->getTC(); threadContexts.push_back(tc); delete thread->kernelStats; -- cgit v1.2.3