summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-09-12 15:24:24 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-09-12 15:24:24 -0400
commit6f9ad931cc1c63da925b6372513282d2aa8dc84c (patch)
treed1657d5c20cd8f2e61f6689f0ef229c03bebcdb0 /configs
parent5f187e592e2f5db10d67ee7c8d9cfb11972950b6 (diff)
downloadgem5-6f9ad931cc1c63da925b6372513282d2aa8dc84c.tar.xz
Checkpointing: Force drain/resume when switching a CPU
--HG-- extra : convert_revision : 7d9c3f4c8c357e3a9214deba5df3581beeaf7cb6
Diffstat (limited to 'configs')
-rw-r--r--configs/common/Simulation.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py
index 61b14f026..53c2956a2 100644
--- a/configs/common/Simulation.py
+++ b/configs/common/Simulation.py
@@ -166,7 +166,9 @@ def run(options, root, testsys, cpu_class):
if options.standard_switch:
exit_event = m5.simulate(options.warmup)
+ m5.drain(testsys)
m5.switchCpus(switch_cpu_list1)
+ m5.resume(testsys)
num_checkpoints = 0
exit_cause = ''