mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +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
4
hw/fdc.c
4
hw/fdc.c
@@ -1902,7 +1902,7 @@ fdctrl_t *fdctrl_init (qemu_irq irq, int dma_chann, int mem_mapped,
|
||||
|
||||
fdctrl->sun4m = 0;
|
||||
if (mem_mapped) {
|
||||
io_mem = cpu_register_io_memory(0, fdctrl_mem_read, fdctrl_mem_write,
|
||||
io_mem = cpu_register_io_memory(fdctrl_mem_read, fdctrl_mem_write,
|
||||
fdctrl);
|
||||
cpu_register_physical_memory(io_base, 0x08, io_mem);
|
||||
} else {
|
||||
@@ -1927,7 +1927,7 @@ fdctrl_t *sun4m_fdctrl_init (qemu_irq irq, target_phys_addr_t io_base,
|
||||
|
||||
fdctrl = fdctrl_init_common(irq, -1, io_base, fds);
|
||||
fdctrl->sun4m = 1;
|
||||
io_mem = cpu_register_io_memory(0, fdctrl_mem_read_strict,
|
||||
io_mem = cpu_register_io_memory(fdctrl_mem_read_strict,
|
||||
fdctrl_mem_write_strict,
|
||||
fdctrl);
|
||||
cpu_register_physical_memory(io_base, 0x08, io_mem);
|
||||
|
||||
Reference in New Issue
Block a user