diff options
Diffstat (limited to 'src/systemc/SystemC.py')
-rw-r--r-- | src/systemc/SystemC.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemc/SystemC.py b/src/systemc/SystemC.py index 8eb6c22a2..bc04ed69c 100644 --- a/src/systemc/SystemC.py +++ b/src/systemc/SystemC.py @@ -36,6 +36,11 @@ class SystemC_Kernel(SimObject): cxx_class = 'SystemC::Kernel' cxx_header = 'systemc/kernel.hh' + def sc_main(self, *args): + '''Call the systemc sc_main function with the given string args''' + from _m5.systemc import sc_main + sc_main(*args) + # This class represents systemc sc_object instances in python config files. It # inherits from SimObject in python, but the c++ version, sc_core::sc_object, # doesn't inherit from gem5's c++ SimObject class. |