diff options
author | Korey Sewell <ksewell@umich.edu> | 2009-09-16 09:45:30 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2009-09-16 09:45:30 -0400 |
commit | 7858a8e68f9fc8e915c812515f816e8a75921d72 (patch) | |
tree | 79a6d7608c6f6559e1ed12051e49f535d51247ea /configs/common/Simulation.py | |
parent | 9b8e61beb38af081454ffd5e06d14458080b98e0 (diff) | |
download | gem5-7858a8e68f9fc8e915c812515f816e8a75921d72.tar.xz |
configs: add maxinsts option on command line
-option to allow threads to run to a max_inst_any_thread which is more useful/quicker in a lot of
cases then always having to figure out what tick to run your simulation to.
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 d7dde241c..23dfad6c6 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -95,6 +95,10 @@ def run(options, root, testsys, cpu_class): for i in xrange(np): testsys.cpu[i].progress_interval = options.prog_intvl + if options.maxinsts: + for i in xrange(np): + testsys.cpu[i].max_insts_any_thread = options.maxinsts + if cpu_class: switch_cpus = [cpu_class(defer_registration=True, cpu_id=(np+i)) for i in xrange(np)] |