From 7e25052feebcc69592e8d40aa085e386ad23b173 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Fri, 2 Nov 2012 11:32:00 -0500 Subject: Partly revert [4f54b0f229b5] and move draining to m5.changeToTiming Changeset 4f54b0f229b5 removed the call to doDrain in changeToTiming based on the assumption that the system does not need draining when running in atomic mode. This is a false assumption since at least the System class requires the system to be drained before it allows switching of memory modes. This patch reverts that part of the changeset. --- src/python/m5/simulate.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/python/m5/simulate.py') diff --git a/src/python/m5/simulate.py b/src/python/m5/simulate.py index 5fc00ad05..89b6b1e9d 100644 --- a/src/python/m5/simulate.py +++ b/src/python/m5/simulate.py @@ -207,6 +207,7 @@ def changeToTiming(system): (type(system), objects.Root, objects.System) if system.getMemoryMode() != objects.params.timing: + doDrain(system) print "Changing memory mode to timing" system.setMemoryMode(objects.params.timing) -- cgit v1.2.3