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/smc91c111.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/smc91c111.c') diff --git a/hw/smc91c111.c b/hw/smc91c111.c index 93a1fae0dc..cf8d864e5b 100644 --- a/hw/smc91c111.c +++ b/hw/smc91c111.c @@ -704,7 +704,7 @@ static void smc91c111_init1(SysBusDevice *dev) { smc91c111_state *s = FROM_SYSBUS(smc91c111_state, dev); - s->mmio_index = cpu_register_io_memory(0, smc91c111_readfn, + s->mmio_index = cpu_register_io_memory(smc91c111_readfn, smc91c111_writefn, s); sysbus_init_mmio(dev, 16, s->mmio_index); sysbus_init_irq(dev, &s->irq); -- cgit v1.2.1