]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/helper.c
target/arm: Implement HCR_EL2.TID4 traps
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 14 Dec 2022 14:27:09 +0000 (14:27 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Dec 2022 11:18:20 +0000 (11:18 +0000)
commite2ce5fcde468c7316b6ba3c30a970c9e50bf7211
treec799f80f4f45aae9f7d590c2830af1c180a07b2a
parent2d3ce4c6f3bc66234e384355cedc6e7aa40903ac
target/arm: Implement HCR_EL2.TID4 traps

For FEAT_EVT, the HCR_EL2.TID4 trap allows trapping of the cache ID
registers CCSIDR_EL1, CCSIDR2_EL1, CLIDR_EL1 and CSSELR_EL1 (and
their AArch32 equivalents).  This is a subset of the registers
trapped by HCR_EL2.TID2, which includes all of these and also the
CTR_EL0 register.

Our implementation already uses a separate access function for
CTR_EL0 (ctr_el0_access()), so all of the registers currently using
access_aa64_tid2() should also be checking TID4.  Make that function
check both TID2 and TID4, and rename it appropriately.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/helper.c