diff options
author | Gabe Black <gabeblack@google.com> | 2019-03-12 00:33:52 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-03-19 10:23:12 +0000 |
commit | dee6fe7b6a4ce4f2d1e08af9250b6d1d6ce96836 (patch) | |
tree | c16ccab67f329f37c4b8a9abd8d06ee4ed015786 /src/systemc/ext | |
parent | d3d24835bcc03ecf312ac6ba7df114656770730f (diff) | |
download | gem5-dee6fe7b6a4ce4f2d1e08af9250b6d1d6ce96836.tar.xz |
systemc: Hook up gem5_getPort to the gem5 getPort mechanism.
Change-Id: I771607c4436f4c1ca9d355d1da52924308cfc3b3
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17229
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
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; |