From 6f9ad931cc1c63da925b6372513282d2aa8dc84c Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 12 Sep 2007 15:24:24 -0400 Subject: Checkpointing: Force drain/resume when switching a CPU --HG-- extra : convert_revision : 7d9c3f4c8c357e3a9214deba5df3581beeaf7cb6 --- configs/common/Simulation.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configs/common/Simulation.py') 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 = '' -- cgit v1.2.3 From 136cb057d405449593f54c38bdd40046d70e587f Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 12 Sep 2007 15:27:15 -0400 Subject: Checkpointing: Fix directory regex --HG-- extra : convert_revision : 4d3958eda66209373249e54e7deadd1a7442e828 --- configs/common/Simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configs/common/Simulation.py') diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index 53c2956a2..c65597367 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -130,7 +130,7 @@ def run(options, root, testsys, cpu_class): m5.panic("checkpoint dir %s does not exist!" % cptdir) dirs = listdir(cptdir) - expr = re.compile('cpt.([0-9]*)') + expr = re.compile('cpt\.([0-9]*)') cpts = [] for dir in dirs: match = expr.match(dir) -- cgit v1.2.3