summaryrefslogtreecommitdiff
path: root/configs/common/Options.py
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2014-04-10 13:43:33 -0500
committerGedare Bloom <gedare@rtems.org>2014-04-10 13:43:33 -0500
commitca90a54476a45823c627ed2658211b5ca6dc4997 (patch)
tree5f73e2ec806eb908656a836599e99452cc25b771 /configs/common/Options.py
parent698c4c792d9dfbf7ade3dee68ce4993c596cc17d (diff)
downloadgem5-ca90a54476a45823c627ed2658211b5ca6dc4997.tar.xz
config: add num-work-ids command line option
Adds the parameter --num-work-ids to Options.py and reads the parameter into the System params in Simulation.py. This parameter enables setting the number of possible work items to different than 16. Support for this parameter already exists in src/sim/System.py, so this changeset only affects the Python config files. Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r--configs/common/Options.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index e5069dc84..39355293d 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -133,6 +133,8 @@ def addCommonOptions(parser):
simulate (default: run forever)""")
parser.add_option("--work-item-id", action="store", type="int",
help="the specific work id for exit & checkpointing")
+ parser.add_option("--num-work-ids", action="store", type="int",
+ help="Number of distinct work item types")
parser.add_option("--work-begin-cpu-id-exit", action="store", type="int",
help="exit when work starts on the specified cpu")
parser.add_option("--work-end-exit-count", action="store", type="int",