mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
PPC: Make e500 pci byte swap config data
The config data field on the e500 pci controller is in little endian, so we need to enable byte swap there. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
13b7fdeffa
commit
cfb207e643
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ static int e500_pcihost_initfn(SysBusDevice *dev)
|
||||||
cpu_register_physical_memory(registers + PCIE500_CFGADDR, 4, index);
|
cpu_register_physical_memory(registers + PCIE500_CFGADDR, 4, index);
|
||||||
|
|
||||||
/* CFGDATA */
|
/* CFGDATA */
|
||||||
index = pci_host_data_register_mmio(&s->pci_state, 0);
|
index = pci_host_data_register_mmio(&s->pci_state, 1);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
return -1;
|
return -1;
|
||||||
cpu_register_physical_memory(registers + PCIE500_CFGDATA, 4, index);
|
cpu_register_physical_memory(registers + PCIE500_CFGDATA, 4, index);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue