Jerome Forissier 0ff993193f hw/arm/boot: set CPTR_EL3.ESM and SCR_EL3.EnTP2 when booting Linux with EL3
According to the Linux kernel booting.rst [1], CPTR_EL3.ESM and
SCR_EL3.EnTP2 must be initialized to 1 when EL3 is present and FEAT_SME
is advertised. This has to be taken care of when QEMU boots directly
into the kernel (i.e., "-M virt,secure=on -cpu max -kernel Image").

Cc: qemu-stable@nongnu.org
Fixes: 78cb9776662a ("target/arm: Enable SME for -cpu max")
Link: [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/arm64/booting.rst?h=v6.0#n321
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Message-id: 20221003145641.1921467-1-jerome.forissier@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2022-10-10 14:52:25 +01:00
..
2022-06-28 11:06:44 +02:00
2022-09-29 14:38:05 +04:00
2022-09-29 21:18:40 +02:00
2022-06-30 04:49:40 +05:30
2022-04-26 12:25:14 +02:00
2022-09-04 07:02:56 +01:00
2022-07-22 19:01:44 +02:00
2022-06-11 11:44:50 +02:00
2022-09-27 07:04:38 +10:00
2022-09-27 07:59:26 -04:00