Review Board 2.0.15


cpu: Refactor memory system checks

Review Request #1609 - Created Jan. 7, 2013 and submitted

Information
Ali Saidi
gem5
default
Reviewers
Default
Changeset 9458:1a12feac8b2a
---------------------------
cpu: Refactor memory system checks

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.

   
Review request changed
Updated (Feb. 15, 2013, 6:47 a.m.)

Status: Closed (submitted)