diff options
author | 2022-11-03 13:10:40 +0000 | |
---|---|---|
committer | 2022-11-04 10:58:58 +0000 | |
commit | d7ef5e16a17c7dd068420c79fa9e893f15b4abaf (patch) | |
tree | 6abc97f53c9e0339680028fc3cb6f4fdc072bb92 /hw/usb/dev-hub.c | |
parent | hw/arm/boot: Set SME and SVE EL3 vector lengths when booting kernel (diff) | |
download | qemu-d7ef5e16a17c7dd068420c79fa9e893f15b4abaf.tar.xz qemu-d7ef5e16a17c7dd068420c79fa9e893f15b4abaf.zip |
hw/arm/boot: Set SCR_EL3.HXEn when booting kernel
When we direct boot a kernel on a CPU which emulates EL3, we need to
set up the EL3 system registers as the Linux kernel documentation
specifies:
https://www.kernel.org/doc/Documentation/arm64/booting.rst
For CPUs with FEAT_HCX support this includes:
- SCR_EL3.HXEn (bit 38) must be initialised to 0b1.
but we forgot to do this when implementing FEAT_HCX, which would mean
that a guest trying to access the HCRX_EL2 register would crash.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20221027140207.413084-3-peter.maydell@linaro.org
Diffstat (limited to 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions