From 235209a3edd253ab7423373f04d4cee0b22f03e7 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Wed, 15 Apr 2020 08:54:26 +0100 Subject: [PATCH] configs: Add --semi-path option to baremetal.py This is to make it possible to configure the semihosting root directory via commandline. Change-Id: If5167abc19eb8d78db37ebc854c336fe778a8a6f Signed-off-by: Giacomo Travaglini Reviewed-by: Adrian Herrera Reviewed-by: Ciro Santilli Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27951 Tested-by: kokoro --- configs/example/arm/baremetal.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/example/arm/baremetal.py b/configs/example/arm/baremetal.py index 87e895284..36928ec90 100644 --- a/configs/example/arm/baremetal.py +++ b/configs/example/arm/baremetal.py @@ -110,6 +110,7 @@ def create(args): stdin=args.semi_stdin, stdout=args.semi_stdout, stderr=args.semi_stderr, + files_root_dir=args.semi_path, cmd_line = " ".join([ args.kernel ] + args.args) ) @@ -223,6 +224,10 @@ def main(): parser.add_argument("--semi-stderr", type=str, default="stderr", help="Standard error for semihosting " \ "(default: gem5's stderr)") + parser.add_argument('--semi-path', type=str, + default="", + help=('Search path for files to be loaded through ' + 'Arm Semihosting')) parser.add_argument("args", default=[], nargs="*", help="Semihosting arguments to pass to benchmark") parser.add_argument("-P", "--param", action="append", default=[], -- 2.30.2