From: Gabe Black Date: Wed, 12 Dec 2018 08:17:46 +0000 (-0800) Subject: systemc: Add a dummy argv[0] when running the tests. X-Git-Tag: v19.0.0.0~1299 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c560b6c80e641a1937d9af98cb75588ec4eac05;p=gem5.git systemc: Add a dummy argv[0] when running the tests. One TLM test will complain if argc isn't 1 or 2, assuming that that must mean that argc > 2. If it's 0 then the test will also complain and fail. We therefore need to pass it at least a dummy value in argv/argc. Change-Id: I5c64856f46d1459d7238e88ad8ba06933c7c38b8 Reviewed-on: https://gem5-review.googlesource.com/c/15065 Reviewed-by: Anthony Gutierrez Maintainer: Anthony Gutierrez --- diff --git a/src/systemc/tests/config.py b/src/systemc/tests/config.py index 7f8d84057..ebdd5cd47 100755 --- a/src/systemc/tests/config.py +++ b/src/systemc/tests/config.py @@ -47,7 +47,7 @@ args = parser.parse_args() if args.working_dir: os.chdir(args.working_dir) -kernel.sc_main(); +kernel.sc_main('gem5_systemc_test'); m5.instantiate(None)