Change-Id: I386970b5cf7ee1262b259abfb3b5e902ccea9991
Reviewed-on: https://gem5-review.googlesource.com/c/16568
Maintainer: Gabe Black <gabeblack@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
kernel = SystemC_Kernel()
root = Root(full_system=True, systemc_kernel=kernel)
-kernel.sc_main(*sys.argv)
+m5.systemc.sc_main(*sys.argv)
m5.instantiate(None)
cause = m5.simulate(m5.MaxTick).getCause()
-result = kernel.sc_main_result()
+result = m5.systemc.sc_main_result()
if result.code != 0:
m5.util.panic('sc_main return code was %d.' % result.code)