summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorPeter Maydell2015-04-26 17:49:25 +0200
committerPeter Maydell2015-04-26 17:49:25 +0200
commit8bf5b6a9c1911d2c8473385fc0cebfaaeef42dbc (patch)
tree49d6beecc37319dfabb18b35fef615dfda034342 /include/exec
parentSwitch non-CPU callers from ld/st*_phys to address_space_ld/st* (diff)
downloadqemu-8bf5b6a9c1911d2c8473385fc0cebfaaeef42dbc.tar.gz
qemu-8bf5b6a9c1911d2c8473385fc0cebfaaeef42dbc.tar.xz
qemu-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')
-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,