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/tusb6010.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/tusb6010.c') diff --git a/hw/tusb6010.c b/hw/tusb6010.c index f3aa7b1f80..622de81d59 100644 --- a/hw/tusb6010.c +++ b/hw/tusb6010.c @@ -742,7 +742,7 @@ TUSBState *tusb6010_init(qemu_irq intr) s->mask = 0xffffffff; s->intr = 0x00000000; s->otg_timer_val = 0; - s->iomemtype[1] = cpu_register_io_memory(0, tusb_async_readfn, + s->iomemtype[1] = cpu_register_io_memory(tusb_async_readfn, tusb_async_writefn, s); s->irq = intr; s->otg_timer = qemu_new_timer(vm_clock, tusb_otg_tick, s); -- cgit 1.4.1