systemc: Add a stubbed out sc_event_finder class.
authorGabe Black <gabeblack@google.com>
Tue, 8 May 2018 21:22:09 +0000 (14:22 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 23 Jul 2018 22:21:09 +0000 (22:21 +0000)
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>

src/systemc/sc_event.cc
src/systemc/sc_event.hh

index a96d5f31f8cfb009509567050d026e99e38bdb0a..e641af6dcb89f3c3f26ce731326866f7ea79ffd3 100644 (file)
 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__);
index 0da36f239b45816e0f038a842c1291331ab33b01..98a16bd0cf55ab5d621e85f3dc47605f74855bc6 100644 (file)
@@ -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: