summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-02-20 19:07:50 -0800
committerGabe Black <gabeblack@google.com>2019-02-25 23:10:36 +0000
commit65b529525191d2aff280bcda7edf00636fa4ceaf (patch)
treed15865138a7ef0f64b2e237f9774986a5d0565bd /configs
parent0ee9f5e208ac62042236f2e347704d3d0568758c (diff)
downloadgem5-65b529525191d2aff280bcda7edf00636fa4ceaf.tar.xz
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 <gabeblack@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'configs')
-rwxr-xr-xconfigs/example/sc_main.py4
1 files 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)