]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: HVC at EL3 should go to EL3, not EL2
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 9 Nov 2023 15:19:17 +0000 (15:19 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Nov 2023 13:15:31 +0000 (13:15 +0000)
commitfc58891d0422607d172a3d6b3158798f2556aef1
treebd8a9831208b3ab2d75c7824bd364aa8f441bec2
parent1d675e59ea194fc918fe0f553eb79209b3fb3a8f
target/arm: HVC at EL3 should go to EL3, not EL2

AArch64 permits code at EL3 to use the HVC instruction; however the
exception we take should go to EL3, not down to EL2 (see the pseudocode
AArch64.CallHypervisor()). Fix the target EL.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar@zeroasic.com>
Message-id: 20231109151917.1925107-1-peter.maydell@linaro.org
target/arm/tcg/translate-a64.c