powerpc: fix -machine usb=no for newworld and pseries machines
commitc6e765035bc5e0d73231c2c0fbd54620201d6655
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Mar 2015 17:05:28 +0000 (23 18:05 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 25 Mar 2015 21:49:47 +0000 (25 22:49 +0100)
tree05e1631846d0ec05a624c5ee159b9a431fe1385b
parent5b2128d27051fe036ac36e8e860e72490b27a369
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>
hw/core/machine.c
hw/ppc/mac_newworld.c
hw/ppc/spapr.c
include/hw/boards.h