Shivani Parekh has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/32309 )
Change subject: misc: Updated port classes & refs to remove
slaveBind()/UnBind()
......................................................................
misc: Updated port classes & refs to remove slaveBind()/UnBind()
Change-Id: I9106397b8816d8148dd916510bbcf65ed499d303
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32309
Reviewed-by: Bobby R. Bruce <bbr...@ucdavis.edu>
Reviewed-by: Gabe Black <gabebl...@google.com>
Maintainer: Gabe Black <gabebl...@google.com>
Tested-by: kokoro <noreply+kok...@google.com>
---
M src/mem/port.cc
M src/mem/port.hh
M src/mem/token_port.cc
3 files changed, 8 insertions(+), 8 deletions(-)
Approvals:
Gabe Black: Looks good to me, but someone else must approve; Looks good
to me, approved
Bobby R. Bruce: Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/mem/port.cc b/src/mem/port.cc
index 6460b59..b901571 100644
--- a/src/mem/port.cc
+++ b/src/mem/port.cc
@@ -131,7 +131,7 @@
_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 @@
{
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 @@
}
/**
- * Slave port
+ * Response port
*/
ResponsePort::ResponsePort(const std::string& name, SimObject* _owner,
PortID id) : Port(name, id), _requestPort(&defaultRequestPort),
@@ -177,14 +177,14 @@
}
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);
diff --git a/src/mem/port.hh b/src/mem/port.hh
index f378f07..c933af62 100644
--- a/src/mem/port.hh
+++ b/src/mem/port.hh
@@ -423,13 +423,13 @@
* 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.
diff --git a/src/mem/token_port.cc b/src/mem/token_port.cc
index 1a8439d..46d9116 100644
--- a/src/mem/token_port.cc
+++ b/src/mem/token_port.cc
@@ -109,7 +109,7 @@
void
TokenSlavePort::unbind()
{
- SlavePort::slaveUnbind();
+ SlavePort::responderUnbind();
tokenMasterPort = nullptr;
}
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/32309
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I9106397b8816d8148dd916510bbcf65ed499d303
Gerrit-Change-Number: 32309
Gerrit-PatchSet: 5
Gerrit-Owner: Shivani Parekh <shpar...@ucdavis.edu>
Gerrit-Reviewer: Andreas Sandberg <andreas.sandb...@arm.com>
Gerrit-Reviewer: Bobby R. Bruce <bbr...@ucdavis.edu>
Gerrit-Reviewer: Emily Brickey <esbric...@ucdavis.edu>
Gerrit-Reviewer: Gabe Black <gabebl...@google.com>
Gerrit-Reviewer: Matthew Poremba <matthew.pore...@amd.com>
Gerrit-Reviewer: Shivani Parekh <shpar...@ucdavis.edu>
Gerrit-Reviewer: kokoro <noreply+kok...@google.com>
Gerrit-CC: Jason Lowe-Power <power...@gmail.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s