From: Gabe Black Date: Wed, 10 Oct 2018 04:07:57 +0000 (-0700) Subject: systemc: Add a python config class for sc_modules. X-Git-Tag: v19.0.0.0~1488 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82ed9a0eb236f1f2414558c57caaa808a888b056;p=gem5.git 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 Maintainer: Gabe Black --- 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: