systemc: Update the sc_main.py config to use m5.systemc.
authorGabe Black <gabeblack@google.com>
Thu, 21 Feb 2019 03:07:50 +0000 (19:07 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 25 Feb 2019 23:10:36 +0000 (23:10 +0000)
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>
configs/example/sc_main.py

index 293c76e49d210d4223a25096cfc48aaa04495e54..20d19b642845d1968777acb79cdbb72131ba29d0 100755 (executable)
@@ -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)