mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06: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:
parent
dff840348e
commit
1eed09cb4a
140 changed files with 291 additions and 283 deletions
|
@ -1116,7 +1116,7 @@ static void io_writew(void *opaque, target_phys_addr_t addr, uint32_t value)
|
|||
static CPUReadMemoryFunc *io_readfn[] = { io_readb, io_readh, io_readw, };
|
||||
static CPUWriteMemoryFunc *io_writefn[] = { io_writeb, io_writeh, io_writew, };
|
||||
|
||||
inline static int debug_register_io_memory(int io_index,
|
||||
inline static int debug_register_io_memory(
|
||||
CPUReadMemoryFunc **mem_read, CPUWriteMemoryFunc **mem_write,
|
||||
void *opaque)
|
||||
{
|
||||
|
@ -1126,7 +1126,7 @@ inline static int debug_register_io_memory(int io_index,
|
|||
s->mem_write = mem_write;
|
||||
s->opaque = opaque;
|
||||
s->in = 0;
|
||||
return cpu_register_io_memory(io_index, io_readfn, io_writefn, s);
|
||||
return cpu_register_io_memory(io_readfn, io_writefn, s);
|
||||
}
|
||||
# define cpu_register_io_memory debug_register_io_memory
|
||||
# endif
|
||||
|
@ -1136,7 +1136,7 @@ inline static int debug_register_io_memory(int io_index,
|
|||
|
||||
# ifdef L4_MUX_HACK
|
||||
# undef l4_register_io_memory
|
||||
int l4_register_io_memory(int io_index, CPUReadMemoryFunc **mem_read,
|
||||
int l4_register_io_memory(CPUReadMemoryFunc **mem_read,
|
||||
CPUWriteMemoryFunc **mem_write, void *opaque);
|
||||
# endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue