Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/13327

Change subject: systemc: Remove a redundant error check.
......................................................................

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
---
M src/systemc/core/port.hh
1 file changed, 1 insertion(+), 10 deletions(-)



diff --git a/src/systemc/core/port.hh b/src/systemc/core/port.hh
index b9f070f..203bafb 100644
--- a/src/systemc/core/port.hh
+++ b/src/systemc/core/port.hh
@@ -67,17 +67,8 @@
     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

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/13327
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I691ebd0f1598193f861c6085341dcd2fb05dd210
Gerrit-Change-Number: 13327
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to