changeset db1b5b20096f in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=db1b5b20096f
description:
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:
src/python/m5/simulate.py | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diffs (11 lines):
diff -r 235d75ea01d8 -r db1b5b20096f src/python/m5/simulate.py
--- a/src/python/m5/simulate.py Tue Jul 07 09:51:04 2015 +0100
+++ b/src/python/m5/simulate.py Tue Jul 07 09:51:04 2015 +0100
@@ -224,7 +224,6 @@
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."
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev