make BaseCPU the provider of _cpuId, and cpuId() instead of being scattered
authorLisa Hsu <hsul@eecs.umich.edu>
Mon, 3 Nov 2008 02:56:57 +0000 (21:56 -0500)
committerLisa Hsu <hsul@eecs.umich.edu>
Mon, 3 Nov 2008 02:56:57 +0000 (21:56 -0500)
commitc55a467a06eaa59c47c52a2adddc266b8e545589
treee86f0c75e6009285507cd2414b829c122bb0be1f
parentf4bceb9760c93d3b5ff3c2606f7e460b42724670
make BaseCPU the provider of _cpuId, and cpuId() instead of being scattered
across the subclasses. generally make it so that member data is _cpuId and
accessor functions are cpuId(). The ID val comes from the python (default -1 if
none provided), and if it is -1, the index of cpuList will be given. this has
passed util/regress quick and se.py -n4 and fs.py -n4 as well as standard
switch.
29 files changed:
src/arch/alpha/locked_mem.hh
src/arch/mips/locked_mem.hh
src/arch/sparc/ua2005.cc
src/arch/x86/tlb.cc
src/cpu/BaseCPU.py
src/cpu/base.cc
src/cpu/base.hh
src/cpu/base_dyn_inst.hh
src/cpu/checker/cpu_impl.hh
src/cpu/checker/thread_context.hh
src/cpu/o3/cpu.cc
src/cpu/o3/cpu.hh
src/cpu/o3/fetch_impl.hh
src/cpu/o3/thread_context.hh
src/cpu/o3/thread_context_impl.hh
src/cpu/o3/thread_state.hh
src/cpu/ozone/cpu.hh
src/cpu/ozone/cpu_impl.hh
src/cpu/ozone/front_end_impl.hh
src/cpu/simple/atomic.cc
src/cpu/simple/base.hh
src/cpu/simple/timing.cc
src/cpu/simple_thread.cc
src/cpu/thread_context.cc
src/cpu/thread_context.hh
src/cpu/thread_state.cc
src/cpu/thread_state.hh
src/sim/system.cc
src/sim/system.hh