summaryrefslogtreecommitdiff
path: root/src/mem/fs_translating_port_proxy.hh
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/fs_translating_port_proxy.hh
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/fs_translating_port_proxy.hh')
-rw-r--r--src/mem/fs_translating_port_proxy.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/fs_translating_port_proxy.hh b/src/mem/fs_translating_port_proxy.hh
index 826def902..2217a46aa 100644
--- a/src/mem/fs_translating_port_proxy.hh
+++ b/src/mem/fs_translating_port_proxy.hh
@@ -84,16 +84,16 @@ class FSTranslatingPortProxy : public PortProxy
/** Version of readblob that translates virt->phys and deals
* with page boundries. */
- virtual void readBlob(Addr addr, uint8_t *p, int size);
+ virtual void readBlob(Addr addr, uint8_t *p, int size) const;
/** Version of writeBlob that translates virt->phys and deals
* with page boundries. */
- virtual void writeBlob(Addr addr, uint8_t *p, int size);
+ virtual void writeBlob(Addr addr, uint8_t *p, int size) const;
/**
* Fill size bytes starting at addr with byte value val.
*/
- virtual void memsetBlob(Addr address, uint8_t v, int size);
+ virtual void memsetBlob(Addr address, uint8_t v, int size) const;
};
void CopyOut(ThreadContext *tc, void *dest, Addr src, size_t cplen);