misc: Updated port classes & refs to remove slaveBind()/UnBind()
authorEmily Brickey <esbrickey@ucdavis.edu>
Tue, 28 Jul 2020 22:36:14 +0000 (15:36 -0700)
committerShivani Parekh <shparekh@ucdavis.edu>
Wed, 26 Aug 2020 16:48:13 +0000 (16:48 +0000)
Change-Id: I9106397b8816d8148dd916510bbcf65ed499d303
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32309
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/port.cc
src/mem/port.hh
src/mem/token_port.cc

index 6460b5943165d6816759dbc542919e7d17e43696..b9015717ab21138b4804ab93ea759992b8c6db59 100644 (file)
@@ -131,7 +131,7 @@ RequestPort::bind(Port &peer)
     _responsePort = response_port;
     Port::bind(peer);
     // response port also keeps track of request port
-    _responsePort->slaveBind(*this);
+    _responsePort->responderBind(*this);
 }
 
 void
@@ -139,7 +139,7 @@ RequestPort::unbind()
 {
     panic_if(!isConnected(), "Can't unbind request port %s which is "
     "not bound.", name());
-    _responsePort->slaveUnbind();
+    _responsePort->responderUnbind();
     _responsePort = &defaultResponsePort;
     Port::unbind();
 }
@@ -164,7 +164,7 @@ RequestPort::printAddr(Addr a)
 }
 
 /**
- * Slave port
+ * Response port
  */
 ResponsePort::ResponsePort(const std::string& name, SimObject* _owner,
     PortID id) : Port(name, id), _requestPort(&defaultRequestPort),
@@ -177,14 +177,14 @@ ResponsePort::~ResponsePort()
 }
 
 void
-ResponsePort::slaveUnbind()
+ResponsePort::responderUnbind()
 {
     _requestPort = &defaultRequestPort;
     Port::unbind();
 }
 
 void
-ResponsePort::slaveBind(RequestPort& request_port)
+ResponsePort::responderBind(RequestPort& request_port)
 {
     _requestPort = &request_port;
     Port::bind(request_port);
index f378f078029a3cf7338485de5da9b55de2040723..c933af62b56031c8f2852278c4a5f5756dc690c7 100644 (file)
@@ -423,13 +423,13 @@ class ResponsePort : public Port, public AtomicResponseProtocol,
      * Called by the request port to unbind. Should never be called
      * directly.
      */
-    void slaveUnbind();
+    void responderUnbind();
 
     /**
      * Called by the request port to bind. Should never be called
      * directly.
      */
-    void slaveBind(RequestPort& request_port);
+    void responderBind(RequestPort& request_port);
 
     /**
      * Default implementations.
index 1a8439d8580f1bd3be015066c1627a669ffc64f2..46d91164a87f3002cfd9ba3ab2c8d0d80bd18737 100644 (file)
@@ -109,7 +109,7 @@ TokenSlavePort::bind(Port& peer)
 void
 TokenSlavePort::unbind()
 {
-    SlavePort::slaveUnbind();
+    SlavePort::responderUnbind();
     tokenMasterPort = nullptr;
 }