mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
4689b77bda
commit
6cabe7fa6d
3 changed files with 8 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue