diff options
Diffstat (limited to 'src/systemc/ext')
-rw-r--r-- | src/systemc/ext/core/sc_module.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh index 0c8bd9f6c..24a1aea04 100644 --- a/src/systemc/ext/core/sc_module.hh +++ b/src/systemc/ext/core/sc_module.hh @@ -30,6 +30,7 @@ #ifndef __SYSTEMC_CORE_EXT_SC_MODULE_HH__ #define __SYSTEMC_CORE_EXT_SC_MODULE_HH__ +#include <string> #include <vector> #include "sc_object.hh" @@ -58,6 +59,9 @@ Process *newCThreadProcess(const char *name, ProcessFuncWrapper *func); } // namespace sc_gem5 +// Gem5 prototype +class Port; + namespace sc_core { @@ -95,6 +99,10 @@ extern const sc_bind_proxy SC_BIND_PROXY_NIL; class sc_module : public sc_object { public: + // Gem5 specific extensions + virtual ::Port &gem5_getPort(const std::string &if_name, int idx=-1); + + public: friend class ::sc_gem5::Kernel; friend class ::sc_gem5::Module; |