]> Git Repo - qemu.git/commitdiff
xhci: allow bytewise capability register reads
authorGerd Hoffmann <[email protected]>
Tue, 4 Sep 2012 12:48:03 +0000 (14:48 +0200)
committerGerd Hoffmann <[email protected]>
Tue, 11 Sep 2012 05:43:02 +0000 (07:43 +0200)
Some guests need this according to
Alejandro Martinez Ruiz <[email protected]>

Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb/hcd-xhci.c

index 567ffb159da88d570702fc1586ea201e1b8b7146..e0ca69044a279f5cb2beea0978cb319c945f4c47 100644 (file)
@@ -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,
 };
 
This page took 0.029961 seconds and 4 git commands to generate.