mirror of
https://github.com/mii443/qemu.git
synced 2025-09-02 23:29:21 +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
2
hw/sbi.c
2
hw/sbi.c
@ -151,7 +151,7 @@ void *sbi_init(target_phys_addr_t addr, qemu_irq **irq, qemu_irq **cpu_irq,
|
||||
s->cpu_irqs[i] = parent_irq[i];
|
||||
}
|
||||
|
||||
sbi_io_memory = cpu_register_io_memory(0, sbi_mem_read, sbi_mem_write, s);
|
||||
sbi_io_memory = cpu_register_io_memory(sbi_mem_read, sbi_mem_write, s);
|
||||
cpu_register_physical_memory(addr, SBI_SIZE, sbi_io_memory);
|
||||
|
||||
register_savevm("sbi", addr, 1, sbi_save, sbi_load, s);
|
||||
|
Reference in New Issue
Block a user