diff options
author | Avi Kivity <avi@redhat.com> | 2009-06-14 11:38:51 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-16 15:18:37 -0500 |
commit | 1eed09cb4a0b187427ef1ccefd42579174f20a7c (patch) | |
tree | 10451f9083433986d683085c342dd8c53148e854 /hw/openpic.c | |
parent | dff840348ecde00e196dca1c87d5d365b7e3c985 (diff) | |
download | qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.zip qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.gz qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.bz2 |
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>
Diffstat (limited to 'hw/openpic.c')
-rw-r--r-- | hw/openpic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/openpic.c b/hw/openpic.c index 51c8ad8..269b965 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -1046,7 +1046,7 @@ static void openpic_map(PCIDevice *pci_dev, int region_num, addr + 0x20000, addr + 0x20000 + 0x1000 * MAX_CPU); cpu_register_physical_memory(addr, 0x40000, opp->mem_index); #if 0 // Don't implement ISU for now - opp_io_memory = cpu_register_io_memory(0, openpic_src_read, + opp_io_memory = cpu_register_io_memory(openpic_src_read, openpic_src_write); cpu_register_physical_memory(isu_base, 0x20 * (EXT_IRQ + 2), opp_io_memory); @@ -1217,7 +1217,7 @@ qemu_irq *openpic_init (PCIBus *bus, int *pmem_index, int nb_cpus, } else { opp = qemu_mallocz(sizeof(openpic_t)); } - opp->mem_index = cpu_register_io_memory(0, openpic_read, + opp->mem_index = cpu_register_io_memory(openpic_read, openpic_write, opp); // isu_base &= 0xFFFC0000; @@ -1687,7 +1687,7 @@ qemu_irq *mpic_init (target_phys_addr_t base, int nb_cpus, for (i = 0; i < sizeof(list)/sizeof(list[0]); i++) { int mem_index; - mem_index = cpu_register_io_memory(0, list[i].read, list[i].write, mpp); + mem_index = cpu_register_io_memory(list[i].read, list[i].write, mpp); if (mem_index < 0) { goto free; } |