]> Git Repo - qemu.git/blobdiff - device_tree.c
virtio-gpu: add to display-vga test
[qemu.git] / device_tree.c
index 4cb1cd50aac882f889139a5ebe1946ab690f4c18..d2de5809474e384914eadeeb7c6f5465f6b8c224 100644 (file)
 #include <unistd.h>
 #include <stdlib.h>
 
-#include "config.h"
 #include "qemu-common.h"
 #include "qemu/error-report.h"
 #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 +244,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) {
This page took 0.024317 seconds and 4 git commands to generate.