mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target/arm: Always enable pac keys for user-only
Drop the pac properties. This approach cannot work as written
because the properties are applied before arm_cpu_reset, which
zeros SCTLR_EL1 (amongst everything else).
We can re-introduce the properties if they turn out to be useful.
But since linux 5.0 enables all of the keys, they may not be.
Fixes: 1ae9cfbd47
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
42f6ed9193
commit
276c6e8137
2 changed files with 3 additions and 60 deletions
|
@ -185,6 +185,9 @@ static void arm_cpu_reset(CPUState *s)
|
|||
env->pstate = PSTATE_MODE_EL0t;
|
||||
/* Userspace expects access to DC ZVA, CTL_EL0 and the cache ops */
|
||||
env->cp15.sctlr_el[1] |= SCTLR_UCT | SCTLR_UCI | SCTLR_DZE;
|
||||
/* Enable all PAC keys. */
|
||||
env->cp15.sctlr_el[1] |= (SCTLR_EnIA | SCTLR_EnIB |
|
||||
SCTLR_EnDA | SCTLR_EnDB);
|
||||
/* Enable all PAC instructions */
|
||||
env->cp15.hcr_el2 |= HCR_API;
|
||||
env->cp15.scr_el3 |= SCR_API;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue