diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-04 14:48:03 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-11 07:43:02 +0200 |
commit | 6ee021d41078844df60a3a466e3829a3e82776f3 (patch) | |
tree | db2dfdaeb42a0d1fd8edf2444357a0334fb8b4da | |
parent | 1b067564ce5db9a144eb15239abbd36c31dd65c8 (diff) | |
download | qemu-6ee021d41078844df60a3a466e3829a3e82776f3.zip qemu-6ee021d41078844df60a3a466e3829a3e82776f3.tar.gz qemu-6ee021d41078844df60a3a466e3829a3e82776f3.tar.bz2 |
xhci: allow bytewise capability register reads
Some guests need this according to
Alejandro Martinez Ruiz <alex@securiforest.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | hw/usb/hcd-xhci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 567ffb1..e0ca690 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -2746,8 +2746,10 @@ static void xhci_doorbell_write(void *ptr, target_phys_addr_t reg, static const MemoryRegionOps xhci_cap_ops = { .read = xhci_cap_read, - .valid.min_access_size = 4, + .valid.min_access_size = 1, .valid.max_access_size = 4, + .impl.min_access_size = 4, + .impl.max_access_size = 4, .endianness = DEVICE_LITTLE_ENDIAN, }; |