diff options
author | Giacomo Gabrielli <Giacomo.Gabrielli@arm.com> | 2014-01-24 15:29:30 -0600 |
---|---|---|
committer | Giacomo Gabrielli <Giacomo.Gabrielli@arm.com> | 2014-01-24 15:29:30 -0600 |
commit | aefe9cc624902fe26535028f86ba3a45f555bcf0 (patch) | |
tree | 4d775f34b34eeafc0c596b95aa071cc52fb94283 /src/mem/cache/tags/lru.hh | |
parent | 7f835a59f1c342eb1c170973ad53c493cc38e978 (diff) | |
download | gem5-aefe9cc624902fe26535028f86ba3a45f555bcf0.tar.xz |
mem: Add support for a security bit in the memory system
This patch adds the basic building blocks required to support e.g. ARM
TrustZone by discerning secure and non-secure memory accesses.
Diffstat (limited to 'src/mem/cache/tags/lru.hh')
-rw-r--r-- | src/mem/cache/tags/lru.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mem/cache/tags/lru.hh b/src/mem/cache/tags/lru.hh index b9f8fc25c..9d438497a 100644 --- a/src/mem/cache/tags/lru.hh +++ b/src/mem/cache/tags/lru.hh @@ -148,20 +148,23 @@ public: * NULL pointer is returned. This has all the implications of a cache * access and should only be used as such. Returns the access latency as a side effect. * @param addr The address to find. + * @param is_secure True if the target memory space is secure. * @param asid The address space ID. * @param lat The access latency. * @return Pointer to the cache block if found. */ - BlkType* accessBlock(Addr addr, Cycles &lat, int context_src); + BlkType* accessBlock(Addr addr, bool is_secure, Cycles &lat, + int context_src); /** * Finds the given address in the cache, do not update replacement data. * i.e. This is a no-side-effect find of a block. * @param addr The address to find. + * @param is_secure True if the target memory space is secure. * @param asid The address space ID. * @return Pointer to the cache block if found. */ - BlkType* findBlock(Addr addr) const; + BlkType* findBlock(Addr addr, bool is_secure) const; /** * Find a block to evict for the address provided. |