]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/arm/cpu: Restrict v8M IDAU interface to Aarch32 CPUs
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 4 May 2020 17:24:47 +0000 (19:24 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 11 May 2020 10:45:59 +0000 (11:45 +0100)
As IDAU is a v8M feature, restrict it to the Aarch32 CPUs.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200504172448.9402-5-philmd@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.c

index b4d73dd47c102e56e73fd733c5ae7078cb2b1b80..a10f8c40447c347154c6eefb5c2f0297d41ded7c 100644 (file)
@@ -2889,7 +2889,6 @@ static void arm_cpu_register_types(void)
     const size_t cpu_count = ARRAY_SIZE(arm_cpus);
 
     type_register_static(&arm_cpu_type_info);
-    type_register_static(&idau_interface_type_info);
 
 #ifdef CONFIG_KVM
     type_register_static(&host_arm_cpu_type_info);
@@ -2898,6 +2897,7 @@ static void arm_cpu_register_types(void)
     if (cpu_count) {
         size_t i;
 
+        type_register_static(&idau_interface_type_info);
         for (i = 0; i < cpu_count; ++i) {
             arm_cpu_register(&arm_cpus[i]);
         }