aboutsummaryrefslogtreecommitdiff
path: root/device_tree.c
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel@redhat.com>2015-02-04 17:43:53 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-03-11 18:17:11 +0100
commit6cabe7fa6deeffeed9a3e6d996d6107c94965948 (patch)
tree8e9b6e6ad7552825a67bfd8df5b9b94a538d83fa /device_tree.c
parent4689b77bda5187d4e2aac78bf21cc1a86502652d (diff)
machine: query phandle-start machine property
Commit e79d5a6 ("machine: remove qemu_machine_opts global list") removed the global option descriptions and moved them to MachineState's QOM properties. Query phandle-start by accessing machine properties through designated wrappers. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'device_tree.c')
-rw-r--r--device_tree.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/device_tree.c b/device_tree.c
index 4cb1cd50aa..3d119ef0bd 100644
--- a/device_tree.c
+++ b/device_tree.c
@@ -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) {