diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-07 01:51:25 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-16 01:11:09 +0000 |
commit | 98f40c54a31457078de587b8a29fdd055b9db28b (patch) | |
tree | 26b32441602ff266348898010136e5f223234e37 /src | |
parent | a8f873a8069b69e34e95de6ebbb3d0d41fffb221 (diff) | |
download | gem5-98f40c54a31457078de587b8a29fdd055b9db28b.tar.xz |
systemc: Remove a redundant error check.
If the check doesn't abort the port binding in progress, it will be
reported twice.
Change-Id: I691ebd0f1598193f861c6085341dcd2fb05dd210
Reviewed-on: https://gem5-review.googlesource.com/c/13327
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/systemc/core/port.hh | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/systemc/core/port.hh b/src/systemc/core/port.hh index b9f070ffb..203bafb86 100644 --- a/src/systemc/core/port.hh +++ b/src/systemc/core/port.hh @@ -67,17 +67,8 @@ class Port void addInterface(::sc_core::sc_interface *iface) { - for (int i = 0; i < _size; i++) { - if (getInterface(i) == iface) { - std::string msg = - csprintf("interface already bound to port: port '%s' (%s)", - portBase->name(), portBase->kind()); - SC_REPORT_ERROR("(E107) bind interface to port failed", - msg.c_str()); - } - } - _size++; portBase->_gem5AddInterface(iface); + _size++; } void |