summaryrefslogtreecommitdiff
path: root/src/systemc/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemc/core')
-rw-r--r--src/systemc/core/SystemC.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemc/core/SystemC.py b/src/systemc/core/SystemC.py
index 7afbd285b..84424ef1d 100644
--- a/src/systemc/core/SystemC.py
+++ b/src/systemc/core/SystemC.py
@@ -58,6 +58,11 @@ class SystemC_Kernel(SimObject):
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.