Review Board 2.0.15


sim: Reuse the code to change memory mode.

Review Request #1506 - Created Oct. 24, 2012 and submitted

Information
Ali Saidi
gem5
default
Reviewers
Default
Changeset 9330:dc26d1d5e4a5
---------------------------
sim: Reuse the code to change memory mode.

changeToAtomic and changeToTiming both do essentially the same thing,
they check the type of their input argument, drain the system, and
switch to the desired memory mode. This patch moves all of that code
to a separate method (changeMemoryMode) and calls that from both
changeToAtomic and changeToTiming.

   
Review request changed
Updated (Nov. 2, 2012, 2:58 a.m.)

Status: Closed (submitted)