summaryrefslogtreecommitdiffstats
path: root/hw/fdc.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-06-14 11:38:51 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:18:37 -0500
commit1eed09cb4a0b187427ef1ccefd42579174f20a7c (patch)
tree10451f9083433986d683085c342dd8c53148e854 /hw/fdc.c
parentdff840348ecde00e196dca1c87d5d365b7e3c985 (diff)
downloadhqemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.zip
hqemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.gz
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/fdc.c')
-rw-r--r--hw/fdc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/fdc.c b/hw/fdc.c
index 4c6284c..aa89db3 100644
--- a/hw/fdc.c
+++ b/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);
OpenPOWER on IntegriCloud