hw/mips: Improve the default USB settings in the loongson3-virt machine
commit5fc1a686607a40cbf0aa0b861dd8e9a642813a83
authorThomas Huth <thuth@redhat.com>
Fri, 14 Jul 2023 10:49:03 +0000 (14 12:49 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 25 Jul 2023 12:40:49 +0000 (25 14:40 +0200)
tree61c379b397ac8d08670275856e6206c969f0126d
parent3b830790151ff231531ef2595793e387dd154efb
hw/mips: Improve the default USB settings in the loongson3-virt machine

It's possible to compile QEMU without the USB devices (e.g. when using
"--without-default-devices" as option for the "configure" script).
To be still able to run the loongson3-virt machine in default mode with
such a QEMU binary, we have to check here for the availability of the
OHCI controller first before instantiating the USB devices.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230714104903.284845-1-thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/mips/loongson3_virt.c