diff options
author | Avi Kivity <avi@redhat.com> | 2009-06-14 11:38:51 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-16 15:18:37 -0500 |
commit | 1eed09cb4a0b187427ef1ccefd42579174f20a7c (patch) | |
tree | 10451f9083433986d683085c342dd8c53148e854 /cpu-common.h | |
parent | dff840348ecde00e196dca1c87d5d365b7e3c985 (diff) | |
download | qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.zip qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.gz qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.bz2 |
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>
Diffstat (limited to 'cpu-common.h')
-rw-r--r-- | cpu-common.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpu-common.h b/cpu-common.h index 4640924..8f89325 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -41,8 +41,7 @@ void *qemu_get_ram_ptr(ram_addr_t addr); /* This should not be used by devices. */ ram_addr_t qemu_ram_addr_from_host(void *ptr); -int cpu_register_io_memory(int io_index, - CPUReadMemoryFunc **mem_read, +int cpu_register_io_memory(CPUReadMemoryFunc **mem_read, CPUWriteMemoryFunc **mem_write, void *opaque); void cpu_unregister_io_memory(int table_address); |