diff options
author | Gabe Black <gabeblack@google.com> | 2019-02-11 16:51:16 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-02-12 01:08:48 +0000 |
commit | 502af7c0f58e53105c78cc0cea39404904a09214 (patch) | |
tree | c5f88c43841824dd8ed65c62029789442722c586 /configs/example | |
parent | eb5e99ec590cd92121c4361f389d4c289b6006ab (diff) | |
download | gem5-502af7c0f58e53105c78cc0cea39404904a09214.tar.xz |
systemc: config: Don't inject a custom argv[0] in sc_main.py.
argv[0] is already part of sys.argv, so we don't need to add an
additional argument in front of sys.argv.
The argv[0] which is used in gem5 config scripts is the name of the
config script itself. While it might seem a little odd for the name of
a systemc program to end in .py, it's as arbitrary as any other name,
and generally shouldn't cause a problem. If some other more
sophisticated mechanism for setting argv[0] is necessary, then the user
can write a very slightly more complicated version of this script with
additional logic.
Change-Id: Ifd5d8a02d3cd5db76054151ed6c7a7b1f8495fa8
Reviewed-on: https://gem5-review.googlesource.com/c/16342
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'configs/example')
-rwxr-xr-x | configs/example/sc_main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/example/sc_main.py b/configs/example/sc_main.py index dad987b90..293c76e49 100755 --- a/configs/example/sc_main.py +++ b/configs/example/sc_main.py @@ -37,7 +37,7 @@ from m5.objects import SystemC_Kernel, Root kernel = SystemC_Kernel() root = Root(full_system=True, systemc_kernel=kernel) -kernel.sc_main('gem5_systemc', *sys.argv) +kernel.sc_main(*sys.argv) m5.instantiate(None) |