summaryrefslogtreecommitdiff
path: root/configs/common/Simulation.py
diff options
context:
space:
mode:
authorMalek Musleh <malek.musleh@gmail.com>2015-04-14 11:01:10 -0500
committerMalek Musleh <malek.musleh@gmail.com>2015-04-14 11:01:10 -0500
commit826f69b47073f23ced9b6a2f5eac51e3ae9bc953 (patch)
treee51be674b77157fe419d1c6687f2e21a634d36df /configs/common/Simulation.py
parent34ad1123ee5927e3b1503f07649620a533d3eab9 (diff)
downloadgem5-826f69b47073f23ced9b6a2f5eac51e3ae9bc953.tar.xz
config, cpu: fix progress interval for switched CPUs
This patch ensures that the CPU progress Event is triggered for the new set of switched_cpus that get scheduled (e.g. during fast-forwarding). it also avoids printing the interval state if the cpu is currently switched out. Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'configs/common/Simulation.py')
-rw-r--r--configs/common/Simulation.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py
index 230701c23..73874674c 100644
--- a/configs/common/Simulation.py
+++ b/configs/common/Simulation.py
@@ -462,6 +462,7 @@ def run(options, root, testsys, cpu_class):
switch_cpus[i].system = testsys
switch_cpus[i].workload = testsys.cpu[i].workload
switch_cpus[i].clk_domain = testsys.cpu[i].clk_domain
+ switch_cpus[i].progress_interval = testsys.cpu[i].progress_interval
# simulation period
if options.maxinsts:
switch_cpus[i].max_insts_any_thread = options.maxinsts