CPUs need to test that the memory system is in the right mode in two places, when the CPU is initialized (unless it's switched out) and on a drainResume(). This led to some code duplication in the CPU models. This changeset introduces the verifyMemoryMode() method which is called by BaseCPU::init() if the CPU isn't switched out. The individual CPU models are responsible for calling this method when resuming from a drain as this code is CPU model specific. |
||
---|---|---|
.. | ||
atomic.cc | ||
atomic.hh | ||
AtomicSimpleCPU.py | ||
base.cc | ||
base.hh | ||
BaseSimpleCPU.py | ||
SConscript | ||
SConsopts | ||
timing.cc | ||
timing.hh | ||
TimingSimpleCPU.py |