diff options
author | Andreas Sandberg <Andreas.Sandberg@arm.com> | 2012-11-02 11:32:02 -0500 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@arm.com> | 2012-11-02 11:32:02 -0500 |
commit | dc01535c7e800189c4cb46cab470f4b958be94c7 (patch) | |
tree | 031c5f3b6d8c3e43f493e2efbca413b32359f134 /configs/common | |
parent | 196397fea4e25f097b4a1624ee16fbbbc1c45b64 (diff) | |
download | gem5-dc01535c7e800189c4cb46cab470f4b958be94c7.tar.xz |
python: Rename doDrain()->drain() and make it do the right thing
There is no point in exporting the old drain() method in
Simulate.py. It should only be used internally by doDrain(). This
patch moves the old drain() method into doDrain() and renames
doDrain() to drain().
Diffstat (limited to 'configs/common')
-rw-r--r-- | configs/common/Simulation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index f6273a6f0..53ccf0a14 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -242,7 +242,7 @@ def repeatSwitch(testsys, repeat_switch_cpu_list, maxtick, switch_freq): return exit_cause print "draining the system" - m5.doDrain(testsys) + m5.drain(testsys) m5.switchCpus(repeat_switch_cpu_list) m5.resume(testsys) @@ -469,7 +469,7 @@ def run(options, root, testsys, cpu_class): print "Switching CPUS @ tick %s" % (m5.curTick()) print "Simulation ends instruction count:%d" % \ (testsys.switch_cpus_1[0].max_insts_any_thread) - m5.doDrain(testsys) + m5.drain(testsys) m5.switchCpus(switch_cpu_list1) m5.resume(testsys) |