diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2018-02-13 18:00:22 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2018-02-19 14:24:46 +0000 |
commit | 7b96fc2456d71d0df2700384ab44c1ed01be2f03 (patch) | |
tree | 912d232864b064dfd0f4d924b56e178a0c2d0dfe /src/mem/se_translating_port_proxy.hh | |
parent | 6039da55d87fb27b149ac3da0ebce41bb55a3bee (diff) | |
download | gem5-7b96fc2456d71d0df2700384ab44c1ed01be2f03.tar.xz |
mem: Refactor port proxies to support secure accesses
The current physical port proxy doesn't know how to tag memory
accesses as secure. Refactor the class slightly to create a set of
methods (readBlobPhys, writeBlobPhys, memsetBlobPhys) that always
access physical memory and take a set of Request::Flags as an
argument. The new port proxy, SecurePortProxy, uses this interface to
issue secure physical accesses.
Change-Id: I8232a4b35025be04ec8f91a00f0580266bacb338
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/8364
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/se_translating_port_proxy.hh')
-rw-r--r-- | src/mem/se_translating_port_proxy.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/se_translating_port_proxy.hh b/src/mem/se_translating_port_proxy.hh index 2f2a81b59..04bfd8a2b 100644 --- a/src/mem/se_translating_port_proxy.hh +++ b/src/mem/se_translating_port_proxy.hh @@ -81,7 +81,7 @@ class SETranslatingPortProxy : public PortProxy public: SETranslatingPortProxy(MasterPort& port, Process* p, AllocType alloc); - virtual ~SETranslatingPortProxy(); + ~SETranslatingPortProxy(); void setPageTable(EmulationPageTable *p) { pTable = p; } void setProcess(Process *p) { process = p; } @@ -91,9 +91,9 @@ class SETranslatingPortProxy : public PortProxy 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) const; - virtual void writeBlob(Addr addr, const uint8_t *p, int size) const; - virtual void memsetBlob(Addr addr, uint8_t val, int size) 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; |