OSDN Git Service

target/arm: Add new 's1_is_el0' argument to get_phys_addr_lpae()
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 30 Mar 2020 21:03:59 +0000 (22:03 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 May 2020 09:32:46 +0000 (10:32 +0100)
commitff7de2fc2c994030bfb83af9ddc9a3cd70ce3e88
tree138c16332476b2abf4a283e74fea8630a5278f04
parent59dff859cd850876df2cfa561c7bcfc4bdda4599
target/arm: Add new 's1_is_el0' argument to get_phys_addr_lpae()

For ARMv8.2-TTS2UXN, the stage 2 page table walk wants to know
whether the stage 1 access is for EL0 or not, because whether
exec permission is given can depend on whether this is an EL0
or EL1 access. Add a new argument to get_phys_addr_lpae() so
the call sites can pass this information in.

Since get_phys_addr_lpae() doesn't already have a doc comment,
add one so we have a place to put the documentation of the
semantics of the new s1_is_el0 argument.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200330210400.11724-4-peter.maydell@linaro.org
target/arm/helper.c