summaryrefslogtreecommitdiff
path: root/src/mem/port_proxy.cc
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-02-29 04:47:51 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2012-02-29 04:47:51 -0500
commite5ac647fc96bae316cdea628e49de2a5e3918b78 (patch)
tree65da3ed1ddd9ca6c3af74e73570a379eba4f7e0d /src/mem/port_proxy.cc
parent88abdc0fad3f7670a112ade487c1a8cb848d56bc (diff)
downloadgem5-e5ac647fc96bae316cdea628e49de2a5e3918b78.tar.xz
MEM: Make all the port proxy members const
This is a trivial patch that merely makes all the member functions of the port proxies const. There is no good reason why they should not be, and this change only serves to make it explicit that they are not modified through their use.
Diffstat (limited to 'src/mem/port_proxy.cc')
-rw-r--r--src/mem/port_proxy.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/port_proxy.cc b/src/mem/port_proxy.cc
index ac6ec2465..c1fd41d3c 100644
--- a/src/mem/port_proxy.cc
+++ b/src/mem/port_proxy.cc
@@ -41,7 +41,7 @@
#include "mem/port_proxy.hh"
void
-PortProxy::blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd)
+PortProxy::blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd) const
{
Request req;
@@ -56,7 +56,7 @@ PortProxy::blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd)
}
void
-PortProxy::memsetBlob(Addr addr, uint8_t v, int size)
+PortProxy::memsetBlob(Addr addr, uint8_t v, int size) const
{
// quick and dirty...
uint8_t *buf = new uint8_t[size];