qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 20/35] target/arm: Handle FEAT_NV page table attribute change


From: Richard Henderson
Subject: Re: [PATCH 20/35] target/arm: Handle FEAT_NV page table attribute changes
Date: Thu, 28 Dec 2023 09:57:59 +1100
User-agent: Mozilla Thunderbird

On 12/18/23 22:32, Peter Maydell wrote:
FEAT_NV requires that when HCR_EL2.{NV,NV1} == {1,1} the handling
of some of the page table attribute bits changes for the EL1&0
translation regime:

  * for block and page descriptors:
   - bit [54] holds PXN, not UXN
   - bit [53] is RES0, and the effective value of UXN is 0
   - bit [6], AP[1], is treated as 0
  * for table descriptors, when hierarchical permissions are enabled:
   - bit [60] holds PXNTable, not UXNTable
   - bit [59] is RES0
   - bit [61], APTable[0] is treated as 0

Implement these changes to the page table attribute handling.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
  target/arm/ptw.c | 21 +++++++++++++++++++++
  1 file changed, 21 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]