From 821b17583404f9c4843f6e9f1100352784dd4617 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 2 May 2018 19:56:29 -0700 Subject: systemc: Hook up sc_main. sc_main is exported as a python method on the SystemC_Kernel class and takes a series of string arguments. The internal c++ implementation converts those arguments into the standard argc and argv and uses them to call the standard SystemC version of that function. A weak SystemC version of sc_main is provided so that systemc will compile with or without a simulation provided version of that function. The weak version just complains and dies. Change-Id: Iad735536c37c8bc85d06cf24779f607ae4309b8b Reviewed-on: https://gem5-review.googlesource.com/10824 Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black --- src/systemc/SConscript | 1 + 1 file changed, 1 insertion(+) (limited to 'src/systemc/SConscript') diff --git a/src/systemc/SConscript b/src/systemc/SConscript index 3677a60a8..6e6742f4a 100644 --- a/src/systemc/SConscript +++ b/src/systemc/SConscript @@ -32,5 +32,6 @@ if env['USE_SYSTEMC']: Source('kernel.cc') + Source('sc_main.cc') Source('sc_module_name.cc') Source('sc_object.cc') -- cgit v1.2.3