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_sysctl.c | |
parent | dff840348ecde00e196dca1c87d5d365b7e3c985 (diff) | |
download | hqemu-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/arm_sysctl.c')
-rw-r--r-- | hw/arm_sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index 1ddb4a2..c9d1e3f 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -198,7 +198,7 @@ static void arm_sysctl_init1(SysBusDevice *dev) /* The MPcore bootloader uses these flags to start secondary CPUs. We don't use a bootloader, so do this here. */ s->flags = 3; - iomemtype = cpu_register_io_memory(0, arm_sysctl_readfn, + iomemtype = cpu_register_io_memory(arm_sysctl_readfn, arm_sysctl_writefn, s); sysbus_init_mmio(dev, 0x1000, iomemtype); /* ??? Save/restore. */ |