]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Make NV reads of CurrentEL return EL2
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Jan 2024 14:43:48 +0000 (14:43 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Jan 2024 14:43:48 +0000 (14:43 +0000)
commitb7ecc3da6c87f8a57805acfc46922684f8a26eea
tree428fb6718860cf9fdf996131568994af3520b69b
parent67d10fc4737a44366524295ea6049841e5e593e6
target/arm: Make NV reads of CurrentEL return EL2

FEAT_NV requires that when HCR_EL2.NV is set reads of the CurrentEL
register from EL1 always report EL2 rather than the real EL.
Implement this.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Miguel Luis <miguel.luis@oracle.com>
target/arm/tcg/translate-a64.c