summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/core/sc_interface.cc21
-rw-r--r--src/systemc/ext/core/sc_interface.hh5
2 files changed, 5 insertions, 21 deletions
diff --git a/src/systemc/core/sc_interface.cc b/src/systemc/core/sc_interface.cc
index e01bdccfd..171422d31 100644
--- a/src/systemc/core/sc_interface.cc
+++ b/src/systemc/core/sc_interface.cc
@@ -28,32 +28,17 @@
*/
#include "base/logging.hh"
+#include "systemc/ext/core/sc_event.hh"
#include "systemc/ext/core/sc_interface.hh"
namespace sc_core
{
-void
-sc_interface::register_port(sc_port_base &, const char *)
-{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
-}
-
const sc_event &
sc_interface::default_event() const
{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
- return *(sc_event *)nullptr;
-}
-
-sc_interface::~sc_interface()
-{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
-}
-
-sc_interface::sc_interface()
-{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ static sc_event dummy;
+ return dummy;
}
} // namespace sc_core
diff --git a/src/systemc/ext/core/sc_interface.hh b/src/systemc/ext/core/sc_interface.hh
index 2073f5362..3c6a27dea 100644
--- a/src/systemc/ext/core/sc_interface.hh
+++ b/src/systemc/ext/core/sc_interface.hh
@@ -39,12 +39,11 @@ class sc_event;
class sc_interface
{
public:
- virtual void register_port(sc_port_base &, const char *);
virtual const sc_event &default_event() const;
- virtual ~sc_interface();
+ virtual ~sc_interface() {};
protected:
- sc_interface();
+ sc_interface() {};
private:
// Disabled