summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorChun-Chen TK Hsu <chunchenhsu@google.com>2019-09-13 12:25:18 +0800
committerChun-Chen TK Hsu <chunchenhsu@google.com>2019-11-01 09:25:32 +0000
commit0464696e29c1f8fc726a5aeb7522859a1f6b1379 (patch)
treeea7689be6326a6709bb1a4c0a4276e4621fe7d1f /configs
parent1577428e5c3c0b9a0057502d4f51343e304b2af0 (diff)
downloadgem5-0464696e29c1f8fc726a5aeb7522859a1f6b1379.tar.xz
config: Add --kernel-cmd option in fs_bigLITTLE.py
Allow users to specify their custom Linux kernel command. Change-Id: I1e88523c918369ea5dd86c088eca82471663e76a Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20900 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'configs')
-rw-r--r--configs/example/arm/fs_bigLITTLE.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py
index 01619586f..378ac0d03 100644
--- a/configs/example/arm/fs_bigLITTLE.py
+++ b/configs/example/arm/fs_bigLITTLE.py
@@ -196,6 +196,8 @@ def addOptions(parser):
"Default: %(default)s")
parser.add_argument("--mem-size", type=str, default=default_mem_size,
help="System memory size")
+ parser.add_argument("--kernel-cmd", type=str, default=None,
+ help="Custom Linux kernel command")
parser.add_argument("-P", "--param", action="append", default=[],
help="Set a SimObject parameter relative to the root node. "
"An extended Python multi range slicing syntax can be used "
@@ -233,7 +235,10 @@ def build(options):
mem_size=options.mem_size)
root.system = system
- system.boot_osflags = " ".join(kernel_cmd)
+ if options.kernel_cmd:
+ system.boot_osflags = options.kernel_cmd
+ else:
+ system.boot_osflags = " ".join(kernel_cmd)
if options.big_cpus + options.little_cpus == 0:
m5.util.panic("Empty CPU clusters")