Re: [Qemu-devel] [PATCH] usb: Fix host-side endian bugs in hcd-ehci

2012-09-06 Thread Gerd Hoffmann
On 08/22/12 05:04, David Gibson wrote: > The EHCI device model is horribly broken for big-endian hosts. It uses a > union of 'mmio' a byte array which is as-is as the device's MMIO space > with the various internal registers. The IO routines assume that mmio is > laid out in little-endian order,

[Qemu-devel] [PATCH] usb: Fix host-side endian bugs in hcd-ehci

2012-08-21 Thread David Gibson
The EHCI device model is horribly broken for big-endian hosts. It uses a union of 'mmio' a byte array which is as-is as the device's MMIO space with the various internal registers. The IO routines assume that mmio is laid out in little-endian order, but everything else in the code accesses the re