target/arm: Determine final stage 2 output PA space based on original IPA
commit6c05a866cf732efce5745fabea409603a9f334d0
authorIdan Horowitz <idan.horowitz@gmail.com>
Fri, 1 Apr 2022 14:35:49 +0000 (1 15:35 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 1 Apr 2022 14:35:49 +0000 (1 15:35 +0100)
tree12b94f4a28dd0c92c3dd9a3780bcf2fe5c01bd60
parentbcd7a8cf38b7e9769f741419bc56675cbddb42c6
target/arm: Determine final stage 2 output PA space based on original IPA

As per the AArch64.S2Walk() pseudo-code in the ARMv8 ARM, the final
decision as to the output address's PA space based on the SA/SW/NSA/NSW
bits needs to take the input IPA's PA space into account, and not the
PA space of the result of the stage 2 walk itself.

Signed-off-by: Idan Horowitz <idan.horowitz@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220327093427.1548629-4-idan.horowitz@gmail.com
[PMM: fixed commit message typo]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c