summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-02-20 19:22:35 -0800
committerGabe Black <gabeblack@google.com>2019-02-25 23:10:51 +0000
commit366f6ac0ab276f2bd83e4511582f65b577b5f3b7 (patch)
tree48afcaa32125b5d85396d0406b12713ed46f0daf
parent65b529525191d2aff280bcda7edf00636fa4ceaf (diff)
downloadgem5-366f6ac0ab276f2bd83e4511582f65b577b5f3b7.tar.xz
systemc: Update the systemc example to use m5.systemc for sc_main.
Change-Id: I431d3f2c18964bac1a3f19eacfffd49cd6e50fa2 Reviewed-on: https://gem5-review.googlesource.com/c/16569 Maintainer: Gabe Black <gabeblack@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
-rwxr-xr-xutil/systemc/systemc_within_gem5/systemc_sc_main/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/systemc/systemc_within_gem5/systemc_sc_main/config.py b/util/systemc/systemc_within_gem5/systemc_sc_main/config.py
index 5cc80c705..431d74ca2 100755
--- a/util/systemc/systemc_within_gem5/systemc_sc_main/config.py
+++ b/util/systemc/systemc_within_gem5/systemc_sc_main/config.py
@@ -52,7 +52,7 @@ args = parser.parse_args()
#
# The arguements passed to this function will be treated as the argv values
# passed to the c++ sc_main, with the argc value set appropriately.
-kernel.sc_main(*args.word);
+m5.systemc.sc_main(*args.word);
# Construct the SimObject hierarchy. Anything sc_main built has already been
# constructed.
@@ -64,6 +64,6 @@ m5.instantiate(None)
cause = m5.simulate(m5.MaxTick).getCause()
# If sc_main finished, extract what it returned and do something with it.
-result = kernel.sc_main_result()
+result = m5.systemc.sc_main_result()
if result.code != 0:
sys.exit(int(result.code))