aboutsummaryrefslogtreecommitdiffstats
path: root/hw/rc4030.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/rc4030.c
parentdff840348ecde00e196dca1c87d5d365b7e3c985 (diff)
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/rc4030.c')
-rw-r--r--hw/rc4030.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/rc4030.c b/hw/rc4030.c
index a35360ab5..40610c061 100644
--- a/hw/rc4030.c
+++ b/hw/rc4030.c
@@ -814,9 +814,9 @@ void *rc4030_init(qemu_irq timer, qemu_irq jazz_bus,
register_savevm("rc4030", 0, 2, rc4030_save, rc4030_load, s);
rc4030_reset(s);
- s_chipset = cpu_register_io_memory(0, rc4030_read, rc4030_write, s);
+ s_chipset = cpu_register_io_memory(rc4030_read, rc4030_write, s);
cpu_register_physical_memory(0x80000000, 0x300, s_chipset);
- s_jazzio = cpu_register_io_memory(0, jazzio_read, jazzio_write, s);
+ s_jazzio = cpu_register_io_memory(jazzio_read, jazzio_write, s);
cpu_register_physical_memory(0xf0000000, 0x00001000, s_jazzio);
return s;