hw/cpu/{a15mpcore, a9mpcore}: Handle missing has_el3 CPU props gracefully
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Mon, 14 Sep 2015 13:39:49 +0000 (14:39 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 14 Sep 2015 13:39:49 +0000 (14:39 +0100)
Handle missing CPU support for EL3 gracefully.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 1442135278-25281-2-git-send-email-edgar.iglesias@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/cpu/a15mpcore.c
hw/cpu/a9mpcore.c

index 4ef8db1a4c588399e91ce44fb234a8ddb0327e73..94e8cc1a66a7674f10834c65b11919e26c86ab26 100644 (file)
@@ -64,7 +64,7 @@ static void a15mp_priv_realize(DeviceState *dev, Error **errp)
          * either all the CPUs have TZ, or none do.
          */
         cpuobj = OBJECT(qemu_get_cpu(0));
-        has_el3 = object_property_find(cpuobj, "has_el3", &error_abort) &&
+        has_el3 = object_property_find(cpuobj, "has_el3", NULL) &&
             object_property_get_bool(cpuobj, "has_el3", &error_abort);
         qdev_prop_set_bit(gicdev, "has-security-extensions", has_el3);
     }
index 70462468960635ed1dcfccc7a035e04598e78264..869818cd8a780a31b4adeb3620089f4ec85b22ca 100644 (file)
@@ -69,7 +69,7 @@ static void a9mp_priv_realize(DeviceState *dev, Error **errp)
      * either all the CPUs have TZ, or none do.
      */
     cpuobj = OBJECT(qemu_get_cpu(0));
-    has_el3 = object_property_find(cpuobj, "has_el3", &error_abort) &&
+    has_el3 = object_property_find(cpuobj, "has_el3", NULL) &&
         object_property_get_bool(cpuobj, "has_el3", &error_abort);
     qdev_prop_set_bit(gicdev, "has-security-extensions", has_el3);
 
This page took 0.028439 seconds and 4 git commands to generate.