summaryrefslogtreecommitdiff
path: root/tests/configs/switcheroo.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/configs/switcheroo.py')
-rw-r--r--tests/configs/switcheroo.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/configs/switcheroo.py b/tests/configs/switcheroo.py
index 05d3af2da..61145bbf6 100644
--- a/tests/configs/switcheroo.py
+++ b/tests/configs/switcheroo.py
@@ -122,13 +122,12 @@ def run_test(root, switcher=None, freq=1000, verbose=False):
if verbose:
print "Switching CPUs..."
print "Next CPU: %s" % type(next_cpu)
- m5.drain(system)
+ m5.drain()
if current_cpu != next_cpu:
m5.switchCpus(system, [ (current_cpu, next_cpu) ],
- do_drain=False, verbose=verbose)
+ verbose=verbose)
else:
print "Source CPU and destination CPU are the same, skipping..."
- m5.resume(system)
current_cpu = next_cpu
elif exit_cause == "target called exit()" or \
exit_cause == "m5_exit instruction encountered":