mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 05:58:32 +00:00
Remove io_index argument from cpu_register_io_memory()
The parameter is always zero except when registering the three internal io regions (ROM, unassigned, notdirty). Remove the parameter to reduce the API's power, thus facilitating future change. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
dff840348e
commit
1eed09cb4a
@@ -179,9 +179,9 @@ PCIBus *sh_pci_register_bus(pci_set_irq_fn set_irq, pci_map_irq_fn map_irq,
|
||||
|
||||
p->dev = pci_register_device(p->bus, "SH PCIC", sizeof(PCIDevice),
|
||||
-1, NULL, NULL);
|
||||
reg = cpu_register_io_memory(0, sh_pci_reg.r, sh_pci_reg.w, p);
|
||||
iop = cpu_register_io_memory(0, sh_pci_iop.r, sh_pci_iop.w, p);
|
||||
mem = cpu_register_io_memory(0, sh_pci_mem.r, sh_pci_mem.w, p);
|
||||
reg = cpu_register_io_memory(sh_pci_reg.r, sh_pci_reg.w, p);
|
||||
iop = cpu_register_io_memory(sh_pci_iop.r, sh_pci_iop.w, p);
|
||||
mem = cpu_register_io_memory(sh_pci_mem.r, sh_pci_mem.w, p);
|
||||
cpu_register_physical_memory(0x1e200000, 0x224, reg);
|
||||
cpu_register_physical_memory(0x1e240000, 0x40000, iop);
|
||||
cpu_register_physical_memory(0x1d000000, 0x1000000, mem);
|
||||
|
||||
Reference in New Issue
Block a user