OSDN Git Service

target/arm/ptw: Set attributes correctly for MMU disabled data accesses
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:09 +0000 (17:31 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:09 +0000 (17:31 +0100)
commit3d9ca96221ba7212aacb27ec472f0be703e99a78
treec9c66d8a18927d450b984ec12a6b7449a2c62ca3
parentb02f5e06bcc87a52b9955d1425faadc9ddc9d38e
target/arm/ptw: Set attributes correctly for MMU disabled data accesses

When the MMU is disabled, data accesses should be Device nGnRnE,
Outer Shareable, Untagged.  We handle the other cases from
AArch64.S1DisabledOutput() correctly but missed this one.
Device nGnRnE is memattr == 0, so the only part we were missing
was that shareability should be set to 2 for both insn fetches
and data accesses.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230807141514.19075-13-peter.maydell@linaro.org
target/arm/ptw.c