On 14/7/23 12:49, Thomas Huth wrote:
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 <th...@redhat.com>
---
  v3: Back to runtime detection, but more simple this time compared to v1
      (checking for OHCI should be enough, since this implies CONFIG_USB
       which is the switch that usb-kbd and usb-tablet are depending on)

  hw/mips/loongson3_virt.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>

And queued to mips-fixes, thanks!

Reply via email to