mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
vl: make qemu_get_machine_opts static
Machine options can be retrieved as properties of the machine object. Encourage that by removing the "easy" accessor to machine options. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
55810e90cc
commit
f2ce39b4f0
12 changed files with 26 additions and 39 deletions
|
@ -152,7 +152,7 @@ static int xilinx_load_device_tree(hwaddr addr,
|
|||
int r;
|
||||
const char *dtb_filename;
|
||||
|
||||
dtb_filename = qemu_opt_get(qemu_get_machine_opts(), "dtb");
|
||||
dtb_filename = current_machine->dtb;
|
||||
if (dtb_filename) {
|
||||
fdt = load_device_tree(dtb_filename, &fdt_size);
|
||||
if (!fdt) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue