diff options
author | Korey Sewell <ksewell@umich.edu> | 2009-05-05 02:39:05 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2009-05-05 02:39:05 -0400 |
commit | 9f90291c54135acc42be0fcb8843ec4e67eab2fb (patch) | |
tree | b9877bd1b3a7fb52108def816135943101109608 /configs | |
parent | 06b3e3c303599e4227212638fa4778d115842eea (diff) | |
download | gem5-9f90291c54135acc42be0fcb8843ec4e67eab2fb.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')
-rw-r--r-- | configs/common/Options.py | 2 | ||||
-rw-r--r-- | configs/common/Simulation.py | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py index e5d867cfa..0ddd2f06d 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -38,6 +38,8 @@ parser.add_option("--fastmem", action="store_true") # Run duration options parser.add_option("-m", "--maxtick", type="int") parser.add_option("--maxtime", type="float") +parser.add_option("--prog_intvl", type="int") + # Checkpointing options ###Note that performing checkpointing via python script files will override 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)] |