mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
r2d: Don't use legacy -usbdevice support for setting up board
It's tempting, because usbdevice_create() is so simple to use. But there's a lot of unwanted complexity behind the simple interface. Switch to usb_create_simple(). Cc: Magnus Damm <magnus.damm@gmail.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
599655c91f
commit
456dcd8ab4
@ -301,7 +301,7 @@ static void r2d_init(MachineState *machine)
|
||||
"rtl8139", i==0 ? "2" : NULL);
|
||||
|
||||
/* USB keyboard */
|
||||
usbdevice_create("keyboard");
|
||||
usb_create_simple(usb_bus_find(-1), "usb-kbd");
|
||||
|
||||
/* Todo: register on board registers */
|
||||
memset(&boot_params, 0, sizeof(boot_params));
|
||||
|
Loading…
Reference in New Issue
Block a user