summaryrefslogtreecommitdiff
path: root/include/exec/memattrs.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2015-04-26 16:49:25 +0100
committerPeter Maydell <peter.maydell@linaro.org>2015-04-26 16:49:25 +0100
commit8bf5b6a9c1911d2c8473385fc0cebfaaeef42dbc (patch)
tree49d6beecc37319dfabb18b35fef615dfda034342 /include/exec/memattrs.h
parent42874d3a8c6267ff7789a0396843c884b1d0933a (diff)
downloadqemu-8bf5b6a9c1911d2c8473385fc0cebfaaeef42dbc.zip
target-arm: Honour NS bits in page tables
Honour the NS bit in ARM page tables: * when adding entries to the TLB, include the Secure/NonSecure transaction attribute * set the NS bit in the PAR when doing ATS operations Note that we don't yet correctly use the NSTable bit to cause the page table walk itself to use the right attributes. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'include/exec/memattrs.h')
-rw-r--r--include/exec/memattrs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/exec/memattrs.h b/include/exec/memattrs.h
index 1cb3fc0815..68a9c760d5 100644
--- a/include/exec/memattrs.h
+++ b/include/exec/memattrs.h
@@ -29,6 +29,8 @@ typedef struct MemTxAttrs {
* "didn't specify" if necessary.
*/
unsigned int unspecified:1;
+ /* ARM/AMBA TrustZone Secure access */
+ unsigned int secure:1;
} MemTxAttrs;
/* Bus masters which don't specify any attributes will get this,