mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
powerpc: fix -machine usb=no for newworld and pseries machines
Capture the explicit setting of "usb=no" into a separate bool, and use it to skip the update of machine->usb in the board init function. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
5b2128d270
commit
c6e765035b
4 changed files with 4 additions and 2 deletions
|
@ -223,6 +223,7 @@ static void machine_set_usb(Object *obj, bool value, Error **errp)
|
|||
MachineState *ms = MACHINE(obj);
|
||||
|
||||
ms->usb = value;
|
||||
ms->usb_disabled = !value;
|
||||
}
|
||||
|
||||
static char *machine_get_firmware(Object *obj, Error **errp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue