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/cuda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/cuda.c') diff --git a/hw/cuda.c b/hw/cuda.c index 828ccf722c..edc3d4ad2f 100644 --- a/hw/cuda.c +++ b/hw/cuda.c @@ -760,7 +760,7 @@ void cuda_init (int *cuda_mem_index, qemu_irq irq) s->tick_offset = (uint32_t)mktimegm(&tm) + RTC_OFFSET; s->adb_poll_timer = qemu_new_timer(vm_clock, cuda_adb_poll, s); - *cuda_mem_index = cpu_register_io_memory(0, cuda_read, cuda_write, s); + *cuda_mem_index = cpu_register_io_memory(cuda_read, cuda_write, s); register_savevm("cuda", -1, 1, cuda_save, cuda_load, s); qemu_register_reset(cuda_reset, 0, s); cuda_reset(s); -- cgit 1.4.1