diff options
author | Korey Sewell <ksewell@umich.edu> | 2009-05-05 02:51:31 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2009-05-05 02:51:31 -0400 |
commit | c70241810d4e4f523f173c1646b008dc40faad8e (patch) | |
tree | c1bf567e6e035f60835a2217ca283287f163e104 /configs/common/Simulation.py | |
parent | dc35d2f125de43fb2b2865e9211cccca8546b8cd (diff) | |
download | gem5-c70241810d4e4f523f173c1646b008dc40faad8e.tar.xz |
cpus: fix cpu progress event
this was double scheduling itself (once in constructor and once in cpu code). also add support for stopping / starting
progress events through repeatEvent flag and also changing the interval of the progress event as well
Diffstat (limited to 'configs/common/Simulation.py')
-rw-r--r-- | configs/common/Simulation.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index 0004e4fe6..d7dde241c 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -91,6 +91,10 @@ def run(options, root, testsys, cpu_class): max_checkpoints = options.max_checkpoints switch_cpus = None + if options.prog_intvl: + for i in xrange(np): + testsys.cpu[i].progress_interval = options.prog_intvl + if cpu_class: switch_cpus = [cpu_class(defer_registration=True, cpu_id=(np+i)) for i in xrange(np)] |