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>
#
# 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.
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))