Gabe Black has submitted this change and it was merged. ( https://gem5-review.googlesource.com/c/public/gem5/+/16570 )

Change subject: systemc: Remove _m5.systemc passthroughs from SystemC_Kernel.
......................................................................

systemc: Remove _m5.systemc passthroughs from SystemC_Kernel.

These functions are now exposed through m5.systemc and m5.tlm.

Change-Id: I9f519debbe7380ee38594badcc1146e66e15f8a8
Reviewed-on: https://gem5-review.googlesource.com/c/16570
Maintainer: Gabe Black <[email protected]>
Reviewed-by: Andreas Sandberg <[email protected]>
---
M src/systemc/core/SystemC.py
1 file changed, 0 insertions(+), 28 deletions(-)

Approvals:
  Andreas Sandberg: Looks good to me, approved
  Gabe Black: Looks good to me, approved



diff --git a/src/systemc/core/SystemC.py b/src/systemc/core/SystemC.py
index 84424ef..649d6d3 100644
--- a/src/systemc/core/SystemC.py
+++ b/src/systemc/core/SystemC.py
@@ -30,39 +30,11 @@
# This class represents the systemc kernel. There should be exactly one in the # simulation. It receives gem5 SimObject lifecycle callbacks (init, regStats,
 # etc.) and manages the lifecycle of the systemc simulation accordingly.
-# It also acts as a collecting point for systemc related control functionality.
 class SystemC_Kernel(SimObject):
     type = 'SystemC_Kernel'
     cxx_class = 'sc_gem5::Kernel'
     cxx_header = 'systemc/core/kernel.hh'

-    # The sc_time type won't exist until some setup code runs in gem5.
-    try:
-        from _m5.systemc import sc_time
-    except:
-        pass
-
-    class ScMainResult(object):
-        def __init__(self, code, message):
-            self.code = code
-            self.message = message
-
-    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)
-
-    def sc_main_result(self):
-        '''Retrieve and return the results of running sc_main'''
-        from _m5.systemc import sc_main_result_code, sc_main_result_str
-        return SystemC_Kernel.ScMainResult(
-                sc_main_result_code(), sc_main_result_str());
-
-    def tlm_global_quantum_instance(self):
-        '''Retrieve the global tlm quantum instance'''
-        from _m5.systemc import tlm_global_quantum
-        return tlm_global_quantum.instance()
-
# 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.

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16570
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I9f519debbe7380ee38594badcc1146e66e15f8a8
Gerrit-Change-Number: 16570
Gerrit-PatchSet: 5
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Matthias Jung <[email protected]>
Gerrit-Reviewer: Weiping Liao <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to