summaryrefslogtreecommitdiff
path: root/src/systemc/core
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-10 19:03:12 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 01:17:07 +0000
commit9c9f33bfd4fc5ab67a5e5b4c67a9cca96eb507f0 (patch)
tree4ff6a5a803cd64d55814580bcc5ae14a1b79137c /src/systemc/core
parent82ed9a0eb236f1f2414558c57caaa808a888b056 (diff)
downloadgem5-9c9f33bfd4fc5ab67a5e5b4c67a9cca96eb507f0.tar.xz
systemc: Warn about using deprecated sc_port constructors.
This gets rid of one of the last instances of a warning about unimplemented functionality. Change-Id: I3d8e50ea45554cba969118ce873ed3d2b041ec43 Reviewed-on: https://gem5-review.googlesource.com/c/13395 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core')
-rw-r--r--src/systemc/core/sc_port.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/systemc/core/sc_port.cc b/src/systemc/core/sc_port.cc
index 69fe6f579..37a534a83 100644
--- a/src/systemc/core/sc_port.cc
+++ b/src/systemc/core/sc_port.cc
@@ -29,7 +29,7 @@
#include <sstream>
-#include "base/logging.hh"
+#include "base/cprintf.hh"
#include "systemc/core/module.hh"
#include "systemc/core/port.hh"
#include "systemc/core/scheduler.hh"
@@ -84,9 +84,15 @@ sc_port_base::~sc_port_base()
}
void
-sc_port_base::warn_unimpl(const char *func) const
+sc_port_base::warn_port_constructor() const
{
- warn("%s not implemented.\n", func);
+ static bool warned = false;
+ if (!warned) {
+ SC_REPORT_INFO(SC_ID_IEEE_1666_DEPRECATION_,
+ "interface and/or port binding in port constructors "
+ "is deprecated");
+ warned = true;
+ }
}
void