]> git.proxmox.com Git - mirror_qemu.git/blobdiff - device_tree.c
apic_common: improve readability of apic_reset_common
[mirror_qemu.git] / device_tree.c
index 4cb1cd50aac882f889139a5ebe1946ab690f4c18..3d119ef0bdb15db633a97bf737a706782cbb3361 100644 (file)
@@ -24,7 +24,7 @@
 #include "sysemu/device_tree.h"
 #include "sysemu/sysemu.h"
 #include "hw/loader.h"
-#include "qemu/option.h"
+#include "hw/boards.h"
 #include "qemu/config-file.h"
 
 #include <libfdt.h>
@@ -245,8 +245,7 @@ uint32_t qemu_fdt_alloc_phandle(void *fdt)
      * which phandle id to start allocting phandles.
      */
     if (!phandle) {
-        phandle = qemu_opt_get_number(qemu_get_machine_opts(),
-                                      "phandle_start", 0);
+        phandle = machine_phandle_start(current_machine);
     }
 
     if (!phandle) {