]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Set CTR_EL0.{IDC,DIC} for the 'max' CPU
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Jan 2024 14:43:43 +0000 (14:43 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 9 Jan 2024 14:43:43 +0000 (14:43 +0000)
commit3d65b958c5463a1c06cac51b6474097ecdbb576e
tree072c47eb12edad4f67ff387d29b129bbf1042a51
parentf503bc4b6b38d1840d41922875fffc88d67dd17a
target/arm: Set CTR_EL0.{IDC,DIC} for the 'max' CPU

The CTR_EL0 register has some bits which allow the implementation to
tell the guest that it does not need to do cache maintenance for
data-to-instruction coherence and instruction-to-data coherence.
QEMU doesn't emulate caches and so our cache maintenance insns are
all NOPs.

We already have some models of specific CPUs where we set these bits
(e.g.  the Neoverse V1), but the 'max' CPU still uses the settings it
inherits from Cortex-A57.  Set the bits for 'max' as well, so the
guest doesn't need to do unnecessary work.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Miguel Luis <miguel.luis@oracle.com>
target/arm/tcg/cpu64.c