summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-09 21:07:57 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 01:16:44 +0000
commit82ed9a0eb236f1f2414558c57caaa808a888b056 (patch)
treec29df8a33b91cd51d7dc380b3a75bdeda21131ae
parentf9596e536bbe2f1f19ad16cd7a1bfe2ff0ccd525 (diff)
downloadgem5-82ed9a0eb236f1f2414558c57caaa808a888b056.tar.xz
systemc: Add a python config class for sc_modules.
This class doesn't really add anything, but it provides a consistent base class for sc_modules vs. generic sc_objects. Change-Id: I3fbd4f6b5d1be0b5419f5cbd304aec61d404a341 Reviewed-on: https://gem5-review.googlesource.com/c/13355 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
-rw-r--r--src/systemc/core/SystemC.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/systemc/core/SystemC.py b/src/systemc/core/SystemC.py
index 49b569b0c..7ab33ea71 100644
--- a/src/systemc/core/SystemC.py
+++ b/src/systemc/core/SystemC.py
@@ -73,6 +73,12 @@ class SystemC_ScObject(SimObject):
method.name: (lambda *a, **k: None) for method in SimObject.cxx_exports
})
+class SystemC_ScModule(SystemC_ScObject):
+ type = 'SystemC_ScModule'
+ abstract = True
+ cxx_class = 'sc_core::sc_module'
+ cxx_header = 'systemc/ext/core/sc_module.hh'
+
try:
import _m5
except: