arm: Fix incorrect TLB permission check in aarch32
authorAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 26 May 2016 16:38:15 +0000 (17:38 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 26 May 2016 16:38:15 +0000 (17:38 +0100)
commit2ace05044cab3c7cf2a6d143b5927d47f3a9dc0a
tree5e7c1ed6d638c414950a965be2d6c7981b0efff9
parente360f4db072593893dcbbbdaa5d322f7d5061b34
arm: Fix incorrect TLB permission check in aarch32

The TLB currently assumes that the pxn bit in an LPAE page descriptor
disables execution from unprivileged mode. However, according to the
architecture manual, this bit should disable execution from privileged
modes. Update the TLB implementation to reflect this behavior.

Change-Id: I7f1bb232d7a94a93fd601a9230223195ac952947
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/arch/arm/tlb.cc