summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-07-07 09:51:04 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-07-07 09:51:04 +0100
commit1dc5e63b889647a153f01351f560a3beaa41f293 (patch)
treef74fd20466d225b2b94d8f6cac2ac24f396c3079 /src/python/m5
parent7773cb9565a64bbd39db64e601a447eb4682d668 (diff)
downloadgem5-1dc5e63b889647a153f01351f560a3beaa41f293.tar.xz
python: Remove redundant drain when changing memory modes
When the Python helper code switches CPU models, it sometimes also needs to change the memory mode of the simulator. When this happens, it accidentally tried to drain the simulator despite having done so already. This changeset removes the redundant drain.
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/simulate.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/python/m5/simulate.py b/src/python/m5/simulate.py
index 5673e26c7..2aee677bd 100644
--- a/src/python/m5/simulate.py
+++ b/src/python/m5/simulate.py
@@ -224,7 +224,6 @@ def _changeMemoryMode(system, mode):
raise TypeError, "Parameter of type '%s'. Must be type %s or %s." % \
(type(system), objects.Root, objects.System)
if system.getMemoryMode() != mode:
- drain(system)
system.setMemoryMode(mode)
else:
print "System already in target mode. Memory mode unchanged."