From 1eed09cb4a0b187427ef1ccefd42579174f20a7c Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 14 Jun 2009 11:38:51 +0300 Subject: 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 Signed-off-by: Anthony Liguori --- hw/dp8393x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/dp8393x.c') diff --git a/hw/dp8393x.c b/hw/dp8393x.c index cff84aa0a1..f326a10070 100644 --- a/hw/dp8393x.c +++ b/hw/dp8393x.c @@ -897,6 +897,6 @@ void dp83932_init(NICInfo *nd, target_phys_addr_t base, int it_shift, qemu_register_reset(nic_reset, 0, s); nic_reset(s); - s->mmio_index = cpu_register_io_memory(0, dp8393x_read, dp8393x_write, s); + s->mmio_index = cpu_register_io_memory(dp8393x_read, dp8393x_write, s); cpu_register_physical_memory(base, 0x40 << it_shift, s->mmio_index); } -- cgit 1.4.1