From 82ed9a0eb236f1f2414558c57caaa808a888b056 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 9 Oct 2018 21:07:57 -0700 Subject: [PATCH] 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 --- src/systemc/core/SystemC.py | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.30.2