diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:15 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:15 +0000 |
commit | 952760bb7bce7fbfe0afcf04fee268745f297b87 (patch) | |
tree | 8d0ad00eb068c13794ea691595d661eb19c3c7d3 /hw/ppce500_pci.c | |
parent | c1f63a9d43f294d53e5f78f3534e5b8198e1fa74 (diff) | |
download | qemu-952760bb7bce7fbfe0afcf04fee268745f297b87.tar.gz qemu-952760bb7bce7fbfe0afcf04fee268745f297b87.tar.bz2 qemu-952760bb7bce7fbfe0afcf04fee268745f297b87.zip |
Compile pci_host only once
Convert pci_host_conf_register_mmio_noswap(x) to
pci_host_conf_register_mmio(x, 0).
Convert pci_host_conf_register_mmio(x) to
pci_host_conf_register_mmio(x, 1) for big endian hosts, all cases
happen to be BE.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ppce500_pci.c')
-rw-r--r-- | hw/ppce500_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c index a72fb86d2e..683e6577b6 100644 --- a/hw/ppce500_pci.c +++ b/hw/ppce500_pci.c @@ -293,13 +293,13 @@ PCIBus *ppce500_pci_init(qemu_irq pci_irqs[4], target_phys_addr_t registers) controller->pci_dev = d; /* CFGADDR */ - index = pci_host_conf_register_mmio_noswap(&controller->pci_state); + index = pci_host_conf_register_mmio(&controller->pci_state, 0); if (index < 0) goto free; cpu_register_physical_memory(registers + PCIE500_CFGADDR, 4, index); /* CFGDATA */ - index = pci_host_data_register_mmio(&controller->pci_state); + index = pci_host_data_register_mmio(&controller->pci_state, 0); if (index < 0) goto free; cpu_register_physical_memory(registers + PCIE500_CFGDATA, 4, index); |