aboutsummaryrefslogtreecommitdiffstats
path: root/hw/gt64xxx.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-07 19:45:43 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-07 19:45:43 +0000
commitf00cb701b051427895d9c807126518c5b2208b5d (patch)
tree48dc70d50ea0136e443898f2b7a5d5d2a37c2f89 /hw/gt64xxx.c
parent30b6f3a866ba4cec86b86ddd22cf3fba3f23ea1d (diff)
Unbreak PCI config register, noticed by Stefan Weil.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2957 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/gt64xxx.c')
-rw-r--r--hw/gt64xxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c
index a9589c0b4..f75f8af21 100644
--- a/hw/gt64xxx.c
+++ b/hw/gt64xxx.c
@@ -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: