summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-05-08 14:22:09 -0700
committerGabe Black <gabeblack@google.com>2018-07-23 22:21:09 +0000
commit385f799fe23928cfd15580c3ad2a034119c5648e (patch)
tree98a5187840028eeebf7fe364ba9fae5d7715e86a /src/systemc
parent9ea09625320bb409d35ec8c5e666d87ca9c47639 (diff)
downloadgem5-385f799fe23928cfd15580c3ad2a034119c5648e.tar.xz
systemc: Add a stubbed out sc_event_finder class.
The standard defines this class very loosely, and so there isn't much in the stub definition. Change-Id: I2f8d07927a4eb087235e345a09d5a4d4891413b5 Reviewed-on: https://gem5-review.googlesource.com/10831 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/sc_event.cc6
-rw-r--r--src/systemc/sc_event.hh17
2 files changed, 23 insertions, 0 deletions
diff --git a/src/systemc/sc_event.cc b/src/systemc/sc_event.cc
index a96d5f31f..e641af6dc 100644
--- a/src/systemc/sc_event.cc
+++ b/src/systemc/sc_event.cc
@@ -34,6 +34,12 @@
namespace sc_core
{
+void
+sc_event_finder::warn_unimpl(const char *func) const
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+}
+
sc_event_and_list::sc_event_and_list()
{
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
diff --git a/src/systemc/sc_event.hh b/src/systemc/sc_event.hh
index 0da36f239..98a16bd0c 100644
--- a/src/systemc/sc_event.hh
+++ b/src/systemc/sc_event.hh
@@ -43,6 +43,23 @@ class sc_event_or_expr;
class sc_object;
class sc_port_base;
+class sc_event_finder
+{
+ protected:
+ void warn_unimpl(const char *func) const;
+};
+
+template <class IF>
+class sc_event_finder_t : public sc_event_finder
+{
+ public:
+ sc_event_finder_t(const sc_port_base &,
+ const sc_event & (IF::*event_method)() const)
+ {
+ warn_unimpl(__PRETTY_FUNCTION__);
+ }
+};
+
class sc_event_and_list
{
public: