diff options
author | Marcel Apfelbaum | 2015-01-06 14:29:12 +0100 |
---|---|---|
committer | Peter Maydell | 2015-01-08 18:32:27 +0100 |
commit | f8b6f8edac926bb979bd2b1d21d896c219b522c2 (patch) | |
tree | 4bb6a1eecf163490c413feeacbeb2816b8774e8b /hw/core | |
parent | Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20141223'... (diff) | |
download | qemu-f8b6f8edac926bb979bd2b1d21d896c219b522c2.tar.gz qemu-f8b6f8edac926bb979bd2b1d21d896c219b522c2.tar.xz qemu-f8b6f8edac926bb979bd2b1d21d896c219b522c2.zip |
hw/ppc: modified the condition for usb controllers to be created for some ppc machines
Some ppc machines create a default usb controller based on a 'machine condition'.
Until now the logic was: create the usb controller if:
- the usb option was supplied in cli and value is true or
- the usb option was absent and both set_defaults and the machine
condition were true.
Modified the logic to:
Create the usb controller if:
- the machine condition is true and defaults are enabled or
- the usb option is supplied and true.
The main for this is to simplify the usb_enabled method.
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Message-id: 1420550957-22337-2-git-send-email-marcel@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/core')
0 files changed, 0 insertions, 0 deletions