summaryrefslogtreecommitdiff
path: root/configs/common/Options.py
diff options
context:
space:
mode:
authorCurtis Dunham <Curtis.Dunham@arm.com>2015-01-16 14:12:03 -0600
committerCurtis Dunham <Curtis.Dunham@arm.com>2015-01-16 14:12:03 -0600
commit07ce60bdfa57eedf00f533704b5a2da3fa01b553 (patch)
tree7127baf93ec9357f0d48fd00c8e5c529478e2e59 /configs/common/Options.py
parent5bfa7e3d59138b0b440e5b2e67e8077c1d59c34b (diff)
downloadgem5-07ce60bdfa57eedf00f533704b5a2da3fa01b553.tar.xz
config: add --root-device machine parameter
In case /dev/sda1 is not actually the boot partition for an image, we can override it on the command line or in a benchmark definition.
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 ea3de8691..07059f23b 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -274,6 +274,8 @@ def addFSOptions(parser):
# Disk Image Options
parser.add_option("--disk-image", action="store", type="string", default=None,
help="Path to the disk image to use.")
+ parser.add_option("--root-device", action="store", type="string", default=None,
+ help="OS device name for root partition")
# Command line options
parser.add_option("--command-line", action="store", type="string",