OSDN Git Service

target/arm: Skip granule protection checks for AT instructions
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Tue, 22 Aug 2023 16:31:12 +0000 (17:31 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Aug 2023 16:31:12 +0000 (17:31 +0100)
commitf1269a98aaf8e2884cb067d09bce0d3056ede289
treeb2f16e15973bf474f774dddbb379fac4e6e5a211
parentceaa97465f58cf2b3b4fc07a3b1067eb6f48d2e3
target/arm: Skip granule protection checks for AT instructions

GPC checks are not performed on the output address for AT instructions,
as stated by ARM DDI 0487J in D8.12.2:

  When populating PAR_EL1 with the result of an address translation
  instruction, granule protection checks are not performed on the final
  output address of a successful translation.

Rename get_phys_addr_with_secure(), since it's only used to handle AT
instructions.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20230809123706.1842548-4-jean-philippe@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c
target/arm/internals.h
target/arm/ptw.c