diff options
author | Gabe Black <gabeblack@google.com> | 2019-05-01 19:03:28 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-05-29 04:23:18 +0000 |
commit | 6a69fc18e743006db013797531d9ebcdb352a88d (patch) | |
tree | 3ece9c4d7530bdb04bcc93946e13f97b13715903 /src/mem/se_translating_port_proxy.hh | |
parent | ac65b6ee7f470e73a39197d30e4190f6a538e567 (diff) | |
download | gem5-6a69fc18e743006db013797531d9ebcdb352a88d.tar.xz |
mem, arm: Move some helper methods into the base PortProxy class.
These were originally in the SETranslatingPortProxy class, but they're
not specific to SE mode in any way and are an unnecessary divergence
between the SE and FS mode translating port proxies.
Change-Id: I8cb77531cc287bd15b2386410ffa7b43cdfa67d0
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18570
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/mem/se_translating_port_proxy.hh')
-rw-r--r-- | src/mem/se_translating_port_proxy.hh | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/mem/se_translating_port_proxy.hh b/src/mem/se_translating_port_proxy.hh index 04bfd8a2b..1c8828bbf 100644 --- a/src/mem/se_translating_port_proxy.hh +++ b/src/mem/se_translating_port_proxy.hh @@ -81,22 +81,13 @@ class SETranslatingPortProxy : public PortProxy public: SETranslatingPortProxy(MasterPort& port, Process* p, AllocType alloc); - ~SETranslatingPortProxy(); + ~SETranslatingPortProxy() {} void setPageTable(EmulationPageTable *p) { pTable = p; } void setProcess(Process *p) { process = p; } - bool tryReadBlob(Addr addr, uint8_t *p, int size) const; - bool tryWriteBlob(Addr addr, const 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; - - void readBlob(Addr addr, uint8_t *p, int size) const override; - void writeBlob(Addr addr, const uint8_t *p, int size) const override; - void memsetBlob(Addr addr, uint8_t val, int size) const override; - - void writeString(Addr addr, const char *str) const; - void readString(std::string &str, Addr addr) const; + bool tryReadBlob(Addr addr, uint8_t *p, int size) const override; + bool tryWriteBlob(Addr addr, const uint8_t *p, int size) const override; + bool tryMemsetBlob(Addr addr, uint8_t val, int size) const override; }; #endif // __MEM_SE_TRANSLATING_PORT_PROXY_HH__ |