Gabe Black has submitted this change and it was merged. ( https://gem5-review.googlesource.com/c/public/gem5/+/16569 )

Change subject: systemc: Update the systemc example to use m5.systemc for sc_main.
......................................................................

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 <gabebl...@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandb...@arm.com>
---
M util/systemc/systemc_within_gem5/systemc_sc_main/config.py
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Andreas Sandberg: Looks good to me, approved
  Gabe Black: Looks good to me, approved



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 5cc80c7..431d74c 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 @@
 #
 # 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 @@
 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))

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16569
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I431d3f2c18964bac1a3f19eacfffd49cd6e50fa2
Gerrit-Change-Number: 16569
Gerrit-PatchSet: 4
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-Reviewer: Andreas Sandberg <andreas.sandb...@arm.com>
Gerrit-Reviewer: Gabe Black <gabebl...@google.com>
Gerrit-Reviewer: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-Reviewer: Jason Lowe-Power <ja...@lowepower.com>
Gerrit-Reviewer: Matthias Jung <jun...@eit.uni-kl.de>
Gerrit-Reviewer: Weiping Liao <weipingl...@google.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to