mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06: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:
parent
dff840348e
commit
1eed09cb4a
140 changed files with 291 additions and 283 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue