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/secure_port_proxy.cc | |
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/secure_port_proxy.cc')
-rw-r--r-- | src/mem/secure_port_proxy.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mem/secure_port_proxy.cc b/src/mem/secure_port_proxy.cc index 7bf23d7de..645baa948 100644 --- a/src/mem/secure_port_proxy.cc +++ b/src/mem/secure_port_proxy.cc @@ -39,20 +39,23 @@ #include "mem/secure_port_proxy.hh" -void -SecurePortProxy::readBlob(Addr addr, uint8_t *p, int size) const +bool +SecurePortProxy::tryReadBlob(Addr addr, uint8_t *p, int size) const { readBlobPhys(addr, Request::SECURE, p, size); + return true; } -void -SecurePortProxy::writeBlob(Addr addr, const uint8_t *p, int size) const +bool +SecurePortProxy::tryWriteBlob(Addr addr, const uint8_t *p, int size) const { writeBlobPhys(addr, Request::SECURE, p, size); + return true; } -void -SecurePortProxy::memsetBlob(Addr addr, uint8_t v, int size) const +bool +SecurePortProxy::tryMemsetBlob(Addr addr, uint8_t v, int size) const { memsetBlobPhys(addr, Request::SECURE, v, size); + return true; } |