diff options
Diffstat (limited to 'src/systemc/ext')
-rw-r--r-- | src/systemc/ext/core/sc_event.hh | 3 | ||||
-rw-r--r-- | src/systemc/ext/core/sc_port.hh | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/systemc/ext/core/sc_event.hh b/src/systemc/ext/core/sc_event.hh index a5ac2d4f0..e9748cb95 100644 --- a/src/systemc/ext/core/sc_event.hh +++ b/src/systemc/ext/core/sc_event.hh @@ -64,6 +64,7 @@ class sc_event_finder public: // Should be "implementation defined" but used in the tests. virtual const sc_event &find_event(sc_interface *if_p=NULL) const = 0; + virtual const sc_port_base *port() const = 0; }; template <class IF> @@ -80,6 +81,8 @@ class sc_event_finder_t : public sc_event_finder virtual ~sc_event_finder_t() {} + const sc_port_base *port() const { return _port; } + const sc_event & find_event(sc_interface *if_p=NULL) const override { diff --git a/src/systemc/ext/core/sc_port.hh b/src/systemc/ext/core/sc_port.hh index b39235960..50c45dc0c 100644 --- a/src/systemc/ext/core/sc_port.hh +++ b/src/systemc/ext/core/sc_port.hh @@ -42,6 +42,7 @@ namespace sc_gem5 class BindInfo; class Module; class PendingSensitivityPort; +class PendingSensitivityFinder; }; @@ -85,6 +86,7 @@ class sc_port_base : public sc_object private: friend class ::sc_gem5::PendingSensitivityPort; + friend class ::sc_gem5::PendingSensitivityFinder; friend class ::sc_gem5::Kernel; void _gem5Finalize(); |