From 792c5bdec2b7fac7aebc55f8b75614d554781fa0 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Sun, 16 Aug 2015 16:15:46 +0000 Subject: [PATCH] Set default device speed for floppy, cdrom and disk to 'full'. --- bochs/iodev/usb/usb_cbi.cc | 1 + bochs/iodev/usb/usb_msd.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/bochs/iodev/usb/usb_cbi.cc b/bochs/iodev/usb/usb_cbi.cc index 9df383a72..70bb86588 100644 --- a/bochs/iodev/usb/usb_cbi.cc +++ b/bochs/iodev/usb/usb_cbi.cc @@ -283,6 +283,7 @@ usb_cbi_device_c::usb_cbi_device_c(const char *filename) d.type = USB_DEV_TYPE_FLOPPY; d.maxspeed = USB_SPEED_FULL; + d.speed = d.maxspeed; memset((void*)&s, 0, sizeof(s)); strcpy(d.devname, "BOCHS USB CBI FLOPPY"); strcpy(tmpfname, filename); diff --git a/bochs/iodev/usb/usb_msd.cc b/bochs/iodev/usb/usb_msd.cc index b60a35ff3..0b22163a5 100644 --- a/bochs/iodev/usb/usb_msd.cc +++ b/bochs/iodev/usb/usb_msd.cc @@ -252,6 +252,7 @@ usb_msd_device_c::usb_msd_device_c(usbdev_type type, const char *filename) d.type = type; d.maxspeed = USB_SPEED_SUPER; + d.speed = USB_SPEED_FULL; memset((void*)&s, 0, sizeof(s)); if (d.type == USB_DEV_TYPE_DISK) { strcpy(d.devname, "BOCHS USB HARDDRIVE");