mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
c1f63a9d43
commit
952760bb7b
9 changed files with 69 additions and 48 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue