diff options
author | Curtis Dunham <Curtis.Dunham@arm.com> | 2015-01-16 14:12:03 -0600 |
---|---|---|
committer | Curtis Dunham <Curtis.Dunham@arm.com> | 2015-01-16 14:12:03 -0600 |
commit | 07ce60bdfa57eedf00f533704b5a2da3fa01b553 (patch) | |
tree | 7127baf93ec9357f0d48fd00c8e5c529478e2e59 /configs/example | |
parent | 5bfa7e3d59138b0b440e5b2e67e8077c1d59c34b (diff) | |
download | gem5-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/example')
-rw-r--r-- | configs/example/fs.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configs/example/fs.py b/configs/example/fs.py index 9609b25a2..83b9b3267 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -313,10 +313,13 @@ if options.benchmark: sys.exit(1) else: if options.dual: - bm = [SysConfig(disk=options.disk_image, mem=options.mem_size), - SysConfig(disk=options.disk_image, mem=options.mem_size)] + bm = [SysConfig(disk=options.disk_image, rootdev=options.root_device, + mem=options.mem_size), + SysConfig(disk=options.disk_image, rootdev=options.root_device, + mem=options.mem_size)] else: - bm = [SysConfig(disk=options.disk_image, mem=options.mem_size)] + bm = [SysConfig(disk=options.disk_image, rootdev=options.root_device, + mem=options.mem_size)] np = options.num_cpus |