diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-02-29 04:47:51 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-02-29 04:47:51 -0500 |
commit | e5ac647fc96bae316cdea628e49de2a5e3918b78 (patch) | |
tree | 65da3ed1ddd9ca6c3af74e73570a379eba4f7e0d /src/mem/se_translating_port_proxy.hh | |
parent | 88abdc0fad3f7670a112ade487c1a8cb848d56bc (diff) | |
download | gem5-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/se_translating_port_proxy.hh')
-rw-r--r-- | src/mem/se_translating_port_proxy.hh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mem/se_translating_port_proxy.hh b/src/mem/se_translating_port_proxy.hh index 105122850..31874e6b8 100644 --- a/src/mem/se_translating_port_proxy.hh +++ b/src/mem/se_translating_port_proxy.hh @@ -83,18 +83,18 @@ class SETranslatingPortProxy : public PortProxy SETranslatingPortProxy(Port& port, Process* p, AllocType alloc); virtual ~SETranslatingPortProxy(); - bool tryReadBlob(Addr addr, uint8_t *p, int size); - bool tryWriteBlob(Addr addr, uint8_t *p, int size); - bool tryMemsetBlob(Addr addr, uint8_t val, int size); - bool tryWriteString(Addr addr, const char *str); - bool tryReadString(std::string &str, Addr addr); + bool tryReadBlob(Addr addr, uint8_t *p, int size) const; + bool tryWriteBlob(Addr addr, uint8_t *p, int size) const; + bool tryMemsetBlob(Addr addr, uint8_t val, int size) const; + bool tryWriteString(Addr addr, const char *str) const; + bool tryReadString(std::string &str, Addr addr) const; - virtual void readBlob(Addr addr, uint8_t *p, int size); - virtual void writeBlob(Addr addr, uint8_t *p, int size); - virtual void memsetBlob(Addr addr, uint8_t val, int size); + virtual void readBlob(Addr addr, uint8_t *p, int size) const; + virtual void writeBlob(Addr addr, uint8_t *p, int size) const; + virtual void memsetBlob(Addr addr, uint8_t val, int size) const; - void writeString(Addr addr, const char *str); - void readString(std::string &str, Addr addr); + void writeString(Addr addr, const char *str) const; + void readString(std::string &str, Addr addr) const; }; #endif // __MEM_SE_TRANSLATING_PORT_PROXY_HH__ |