arm: Fix SMC reporting to EL2 when QEMU provides PSCI
commit77077a83006c3c9bdca496727f1735a3c5c5355d
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 6 Oct 2017 15:46:47 +0000 (6 16:46 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 6 Oct 2017 15:46:47 +0000 (6 16:46 +0100)
tree980c9f1818985573f079281cefba0dd049512745
parenta26a98dfb9d448d7234d931ae3720feddf6f0651
arm: Fix SMC reporting to EL2 when QEMU provides PSCI

This properly forwards SMC events to EL2 when PSCI is provided by QEMU
itself and, thus, ARM_FEATURE_EL3 is off.

Found and tested with the Jailhouse hypervisor. Solution based on
suggestions by Peter Maydell.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Message-id: 4f243068-aaea-776f-d18f-f9e05e7be9cd@siemens.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c
target/arm/op_helper.c