Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/13355
Change subject: systemc: Add a python config class for sc_modules.
......................................................................
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
---
M src/systemc/core/SystemC.py
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/systemc/core/SystemC.py b/src/systemc/core/SystemC.py
index 49b569b..7ab33ea 100644
--- a/src/systemc/core/SystemC.py
+++ b/src/systemc/core/SystemC.py
@@ -73,6 +73,12 @@
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:
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/13355
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: I3fbd4f6b5d1be0b5419f5cbd304aec61d404a341
Gerrit-Change-Number: 13355
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev