From: Gabe Black Date: Thu, 21 Feb 2019 03:07:50 +0000 (-0800) Subject: systemc: Update the sc_main.py config to use m5.systemc. X-Git-Tag: v19.0.0.0~1092 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65b529525191d2aff280bcda7edf00636fa4ceaf;p=gem5.git systemc: Update the sc_main.py config to use m5.systemc. Change-Id: I386970b5cf7ee1262b259abfb3b5e902ccea9991 Reviewed-on: https://gem5-review.googlesource.com/c/16568 Maintainer: Gabe Black Reviewed-by: Andreas Sandberg --- diff --git a/configs/example/sc_main.py b/configs/example/sc_main.py index 293c76e49..20d19b642 100755 --- a/configs/example/sc_main.py +++ b/configs/example/sc_main.py @@ -37,12 +37,12 @@ from m5.objects import SystemC_Kernel, Root 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)