ThreadState: initialize status to Halted in constructor.
authorSteve Reinhardt <steve.reinhardt@amd.com>
Wed, 15 Apr 2009 20:18:24 +0000 (13:18 -0700)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Wed, 15 Apr 2009 20:18:24 +0000 (13:18 -0700)
commit7617dcf736b5b96d44aedccd51550be037e7b937
treec45e67e334b961f1e9df6aecfef0a2061c393162
parent48d4ca522a2f771188d93a2d5ff54cf505a8ca41
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
src/cpu/inorder/cpu.cc
src/cpu/o3/cpu.cc
src/cpu/ozone/cpu_impl.hh
src/cpu/thread_state.cc
src/cpu/thread_state.hh