diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 09:51:04 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 09:51:04 +0100 |
commit | 1dc5e63b889647a153f01351f560a3beaa41f293 (patch) | |
tree | f74fd20466d225b2b94d8f6cac2ac24f396c3079 /src/python | |
parent | 7773cb9565a64bbd39db64e601a447eb4682d668 (diff) | |
download | gem5-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')
-rw-r--r-- | src/python/m5/simulate.py | 1 |
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." |