]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: allow writes to SCR_EL3.HXEn bit when FEAT_HCX is enabled
authorEvgeny Iakovlev <eiakovlev@linux.microsoft.com>
Thu, 5 Jan 2023 22:12:51 +0000 (23:12 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Mar 2023 07:20:04 +0000 (10:20 +0300)
commitc3ea5ef558f34cc0bf9f1e4208d43970acabfbef
tree15b3c1b6a84b71510e71c48f9e8eaacf85cb4b34
parentde605876ebda47fc56298576b13acbdfc55732fc
target/arm: allow writes to SCR_EL3.HXEn bit when FEAT_HCX is enabled

ARM trusted firmware, when built with FEAT_HCX support, sets SCR_EL3.HXEn bit
to allow EL2 to modify HCRX_EL2 register without trapping it in EL3. Qemu
uses a valid mask to clear unsupported SCR_EL3 bits when emulating SCR_EL3
write, and that mask doesn't include SCR_EL3.HXEn bit even if FEAT_HCX is
enabled and exposed to the guest. As a result EL3 writes of that bit are
ignored.

Cc: qemu-stable@nongnu.org
Signed-off-by: Evgeny Iakovlev <eiakovlev@linux.microsoft.com>
Message-id: 20230105221251.17896-4-eiakovlev@linux.microsoft.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 08899b5c68a55a3780d707e2464073c8f2670d31)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/arm/helper.c