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/arm_timer.c | |
parent | dff840348ecde00e196dca1c87d5d365b7e3c985 (diff) | |
download | qemu-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/arm_timer.c')
-rw-r--r-- | hw/arm_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/arm_timer.c b/hw/arm_timer.c index 226ecc4722..572804f9cc 100644 --- a/hw/arm_timer.c +++ b/hw/arm_timer.c @@ -268,7 +268,7 @@ static void sp804_init(SysBusDevice *dev) s->timer[1] = arm_timer_init(1000000); s->timer[0]->irq = qi[0]; s->timer[1]->irq = qi[1]; - iomemtype = cpu_register_io_memory(0, sp804_readfn, + iomemtype = cpu_register_io_memory(sp804_readfn, sp804_writefn, s); sysbus_init_mmio(dev, 0x1000, iomemtype); register_savevm("sp804", -1, 1, sp804_save, sp804_load, s); @@ -338,7 +338,7 @@ static void icp_pit_init(SysBusDevice *dev) sysbus_init_irq(dev, &s->timer[1]->irq); sysbus_init_irq(dev, &s->timer[2]->irq); - iomemtype = cpu_register_io_memory(0, icp_pit_readfn, + iomemtype = cpu_register_io_memory(icp_pit_readfn, icp_pit_writefn, s); sysbus_init_mmio(dev, 0x1000, iomemtype); /* This device has no state to save/restore. The component timers will |