systemc: Add a "kind()" overload to sc_port_base.
authorGabe Black <gabeblack@google.com>
Wed, 12 Sep 2018 03:15:05 +0000 (20:15 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 9 Oct 2018 21:47:46 +0000 (21:47 +0000)
This is "implementation defined" but needs to exist to match the
golden reference output from Accellera.

Change-Id: I9b7949343b7c62a8d568abc06ab4dfc88233b20a
Reviewed-on: https://gem5-review.googlesource.com/c/12621
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/ext/core/sc_port.hh

index 50c45dc0cd69c6ae162f1ea496656b3c93acc80c..88745cc2ef0f97a56218278c20dc9610273ebe60 100644 (file)
@@ -68,6 +68,8 @@ class sc_port_base : public sc_object
     int maxSize() const;
     int size() const;
 
+    const char *kind() const { return "sc_port_base"; }
+
   protected:
     // Implementation defined, but depended on by the tests.
     void bind(sc_interface &);