From 65b529525191d2aff280bcda7edf00636fa4ceaf Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 20 Feb 2019 19:07:50 -0800 Subject: [PATCH] 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 --- configs/example/sc_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2