diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-03-13 15:34:52 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-03-19 18:23:24 +0000 |
commit | bda816f08abde5b1681b4e3ba55e42871dad96fc (patch) | |
tree | b4d67e0eedca0ca905cedfb3c01e0c5e88d3c114 /hw/arm/bcm2836.c | |
parent | 43118f4351c1c430aa5c32aed80dcfe0b525a1f0 (diff) |
hw/arm/boot: If booting a kernel in EL2, set SCR_EL3.HCE
If we're directly booting a Linux kernel and the CPU supports both
EL3 and EL2, we start the kernel in EL2, as it expects. We must also
set the SCR_EL3.HCE bit in this situation, so that the HVC
instruction is enabled rather than UNDEFing. Otherwise at least some
kernels will panic when trying to initialize KVM in the guest.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20180313153458.26822-4-peter.maydell@linaro.org
Diffstat (limited to 'hw/arm/bcm2836.c')
0 files changed, 0 insertions, 0 deletions