summaryrefslogtreecommitdiff
path: root/src/systemc/ext/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/ext/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/ext/core')
-rw-r--r--src/systemc/ext/core/sc_port.hh20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/systemc/ext/core/sc_port.hh b/src/systemc/ext/core/sc_port.hh
index c4160bafe..2a454f3a0 100644
--- a/src/systemc/ext/core/sc_port.hh
+++ b/src/systemc/ext/core/sc_port.hh
@@ -79,7 +79,7 @@ class sc_port_base : public sc_object
sc_port_base(const char *name, int n, sc_port_policy p);
virtual ~sc_port_base();
- void warn_unimpl(const char *func) const;
+ void warn_port_constructor() const;
int maxSize() const;
int size() const;
@@ -258,40 +258,34 @@ class sc_port : public sc_port_b<IF>
// Deprecated binding constructors.
explicit sc_port(const IF &interface) : sc_port_b<IF>(N, P)
{
- this->warn_unimpl(__PRETTY_FUNCTION__);
- // Should warn that these are deprecated. See Accellera sc_port.h.
+ this->warn_port_constructor();
sc_port_b<IF>::bind(const_cast<IF &>(interface));
}
sc_port(const char *name, const IF &interface) : sc_port_b<IF>(name, N, P)
{
- this->warn_unimpl(__PRETTY_FUNCTION__);
- // Should warn that these are deprecated. See Accellera sc_port.h.
+ this->warn_port_constructor();
sc_port_b<IF>::bind(const_cast<IF &>(interface));
}
explicit sc_port(sc_port_b<IF> &parent) : sc_port_b<IF>(N, P)
{
- this->warn_unimpl(__PRETTY_FUNCTION__);
- // Should warn that these are deprecated. See Accellera sc_port.h.
+ this->warn_port_constructor();
sc_port_b<IF>::bind(parent);
}
sc_port(const char *name, sc_port_b<IF> &parent) :
sc_port_b<IF>(name, N, P)
{
- this->warn_unimpl(__PRETTY_FUNCTION__);
- // Should warn that these are deprecated. See Accellera sc_port.h.
+ this->warn_port_constructor();
sc_port_b<IF>::bind(parent);
}
explicit sc_port(sc_port<IF, N, P> &parent) : sc_port_b<IF>(N, P)
{
- this->warn_unimpl(__PRETTY_FUNCTION__);
- // Should warn that these are deprecated. See Accellera sc_port.h.
+ this->warn_port_constructor();
sc_port_b<IF>::bind(parent);
}
sc_port(const char *name, sc_port<IF, N, P> &parent) :
sc_port_b<IF>(name, N, P)
{
- this->warn_unimpl(__PRETTY_FUNCTION__);
- // Should warn that these are deprecated. See Accellera sc_port.h.
+ this->warn_port_constructor();
sc_port_b<IF>::bind(parent);
}