diff options
author | Avi Kivity | 2009-06-14 10:38:51 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-06-16 22:18:37 +0200 |
commit | 1eed09cb4a0b187427ef1ccefd42579174f20a7c (patch) | |
tree | 10451f9083433986d683085c342dd8c53148e854 /hw/stellaris.c | |
parent | kvm: Restrict configure check to Linux (diff) | |
download | qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.gz qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.xz qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.zip |
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/stellaris.c')
-rw-r--r-- | hw/stellaris.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/stellaris.c b/hw/stellaris.c index bf339e8aad..5f44bff5d0 100644 --- a/hw/stellaris.c +++ b/hw/stellaris.c @@ -347,7 +347,7 @@ static void stellaris_gptm_init(SysBusDevice *dev) sysbus_init_irq(dev, &s->irq); qdev_init_gpio_out(&dev->qdev, &s->trigger, 1); - iomemtype = cpu_register_io_memory(0, gptm_readfn, + iomemtype = cpu_register_io_memory(gptm_readfn, gptm_writefn, s); sysbus_init_mmio(dev, 0x1000, iomemtype); @@ -668,7 +668,7 @@ static void stellaris_sys_init(uint32_t base, qemu_irq irq, s->user0 = macaddr[0] | (macaddr[1] << 8) | (macaddr[2] << 16); s->user1 = macaddr[3] | (macaddr[4] << 8) | (macaddr[5] << 16); - iomemtype = cpu_register_io_memory(0, ssys_readfn, + iomemtype = cpu_register_io_memory(ssys_readfn, ssys_writefn, s); cpu_register_physical_memory(base, 0x00001000, iomemtype); ssys_reset(s); @@ -880,7 +880,7 @@ static void stellaris_i2c_init(SysBusDevice * dev) bus = i2c_init_bus(&dev->qdev, "i2c"); s->bus = bus; - iomemtype = cpu_register_io_memory(0, stellaris_i2c_readfn, + iomemtype = cpu_register_io_memory(stellaris_i2c_readfn, stellaris_i2c_writefn, s); sysbus_init_mmio(dev, 0x1000, iomemtype); /* ??? For now we only implement the master interface. */ @@ -1188,7 +1188,7 @@ static void stellaris_adc_init(SysBusDevice *dev) sysbus_init_irq(dev, &s->irq[n]); } - iomemtype = cpu_register_io_memory(0, stellaris_adc_readfn, + iomemtype = cpu_register_io_memory(stellaris_adc_readfn, stellaris_adc_writefn, s); sysbus_init_mmio(dev, 0x1000, iomemtype); stellaris_adc_reset(s); |