Checkpointing: Force drain/resume when switching a CPU
authorAli Saidi <saidi@eecs.umich.edu>
Wed, 12 Sep 2007 19:24:24 +0000 (15:24 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Wed, 12 Sep 2007 19:24:24 +0000 (15:24 -0400)
--HG--
extra : convert_revision : 7d9c3f4c8c357e3a9214deba5df3581beeaf7cb6

configs/common/Simulation.py

index 61b14f0266c311534387f2002a25ceb5f600ebeb..53c2956a24eb3420b8700d84c458ef48d4f9b9fa 100644 (file)
@@ -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 = ''