CPU: Unify initMemProxies across CPUs and simulation modes
authorAndreas Hansson <andreas.hansson@arm.com>
Fri, 30 Mar 2012 13:38:35 +0000 (09:38 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Fri, 30 Mar 2012 13:38:35 +0000 (09:38 -0400)
commita14013af3a9e04d68985aea7bcff6c1e70bdbb82
tree67e1fcae84daca1bd507d439a24919d178f4d16e
parent390cfc7be9e5e477451a31a1dc8df82b42ee4011
CPU: Unify initMemProxies across CPUs and simulation modes

This patch unifies where initMemProxies is called, in the init()
method of each BaseCPU subclass, before TheISA::initCPU is
called. Moreover, it also ensures that initMemProxies is called in
both full-system and syscall-emulation mode, thus unifying also across
the modes. An additional check is added in the ThreadState to ensure
that initMemProxies is only called once.
src/cpu/inorder/cpu.cc
src/cpu/o3/cpu.cc
src/cpu/simple/atomic.cc
src/cpu/simple/timing.cc
src/cpu/thread_state.cc
src/cpu/thread_state.hh