]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
Unbreak PCI config register, noticed by Stefan Weil.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 7 Jun 2007 19:45:43 +0000 (19:45 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 7 Jun 2007 19:45:43 +0000 (19:45 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2957 c046a42c-6fe2-441c-8c8c-71466251a162

hw/gt64xxx.c

index a9589c0b4c35ed8b6b4a169eb3eeba56806a91f3..f75f8af210fdc34cf0035f234af94c9855daa662 100644 (file)
@@ -720,7 +720,7 @@ static uint32_t gt64120_readl (void *opaque,
         if (!(s->pci->config_reg & (1u << 31)))
             val = 0xffffffff;
         else
-            val = pci_data_read(s->pci->bus, s->pci->config_reg, 4);
+            val = pci_host_data_readl(s->pci, 0);
         break;
 
     case GT_PCI0_CMD: