]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/arm/xilinx_zynq.c
qdev: Convert bus-less devices to qdev_realize() with Coccinelle
[mirror_qemu.git] / hw / arm / xilinx_zynq.c
index 69d62ee24b6a4b73b246c50f094923eef7ac0ba0..4247c4dbd876c5ce74a32940b497be651716d94f 100644 (file)
@@ -202,7 +202,7 @@ static void zynq_init(MachineState *machine)
                             &error_fatal);
     object_property_set_int(OBJECT(cpu), MPCORE_PERIPHBASE, "reset-cbar",
                             &error_fatal);
-    object_property_set_bool(OBJECT(cpu), true, "realized", &error_fatal);
+    qdev_realize(DEVICE(cpu), NULL, &error_fatal);
 
     /* DDR remapped to address zero.  */
     memory_region_add_subregion(address_space_mem, 0, machine->ram);