summary refs log tree commit diff stats
path: root/target/arm/kvm.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-04-18 16:20:03 +0100
committerPeter Maydell <peter.maydell@linaro.org>2024-04-30 15:01:07 +0100
commitf7ddd7b6a1f90cae677303e96b91e866a1570f6a (patch)
tree305a47052871f43ba3d8cc19cd4fd60699a78fc9 /target/arm/kvm.c
parent74360f3544be380f3a6f7a0f1cd8082ddd4a75ad (diff)
downloadfocaccia-qemu-f7ddd7b6a1f90cae677303e96b91e866a1570f6a.tar.gz
focaccia-qemu-f7ddd7b6a1f90cae677303e96b91e866a1570f6a.zip
target/arm: Implement ID_AA64MMFR3_EL1
Newer versions of the Arm ARM (e.g.  rev K.a) now define fields for
ID_AA64MMFR3_EL1.  Implement this register, so that we can set the
fields if we need to.  There's no behaviour change here since we
don't currently set the register value to non-zero.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240418152004.2106516-5-peter.maydell@linaro.org
Diffstat (limited to 'target/arm/kvm.c')
-rw-r--r--target/arm/kvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/arm/kvm.c b/target/arm/kvm.c
index 21ebbf3b8f..7cf5cf31de 100644
--- a/target/arm/kvm.c
+++ b/target/arm/kvm.c
@@ -331,6 +331,8 @@ static bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)
                               ARM64_SYS_REG(3, 0, 0, 7, 1));
         err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64mmfr2,
                               ARM64_SYS_REG(3, 0, 0, 7, 2));
+        err |= read_sys_reg64(fdarray[2], &ahcf->isar.id_aa64mmfr3,
+                              ARM64_SYS_REG(3, 0, 0, 7, 3));
 
         /*
          * Note that if AArch32 support is not present in the host,