mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -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
|
@ -526,7 +526,7 @@ int qemu_fdt_add_subnode(void *fdt, const char *name)
|
|||
|
||||
void qemu_fdt_dumpdtb(void *fdt, int size)
|
||||
{
|
||||
const char *dumpdtb = qemu_opt_get(qemu_get_machine_opts(), "dumpdtb");
|
||||
const char *dumpdtb = current_machine->dumpdtb;
|
||||
|
||||
if (dumpdtb) {
|
||||
/* Dump the dtb to a file and quit */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue