mirror of
https://github.com/mii443/qemu.git
synced 2025-09-01 14:49:23 +00:00
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>
This commit is contained in:
committed by
Anthony Liguori
parent
dff840348e
commit
1eed09cb4a
@ -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);
|
||||
|
Reference in New Issue
Block a user