diff options
author | Avi Kivity | 2009-06-14 10:38:51 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-06-16 22:18:37 +0200 |
commit | 1eed09cb4a0b187427ef1ccefd42579174f20a7c (patch) | |
tree | 10451f9083433986d683085c342dd8c53148e854 /hw/omap_sx1.c | |
parent | kvm: Restrict configure check to Linux (diff) | |
download | qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.gz qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.xz qemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.zip |
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 'hw/omap_sx1.c')
-rw-r--r-- | hw/omap_sx1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/omap_sx1.c b/hw/omap_sx1.c index ee8e39d7cd..0f6ed9ef6c 100644 --- a/hw/omap_sx1.c +++ b/hw/omap_sx1.c @@ -142,12 +142,12 @@ static void sx1_init(ram_addr_t ram_size, cpu_register_physical_memory(OMAP_CS0_BASE, flash_size, (phys_flash = qemu_ram_alloc(flash_size)) | IO_MEM_ROM); - io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs0val); + io = cpu_register_io_memory(static_readfn, static_writefn, &cs0val); cpu_register_physical_memory(OMAP_CS0_BASE + flash_size, OMAP_CS0_SIZE - flash_size, io); - io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs2val); + io = cpu_register_io_memory(static_readfn, static_writefn, &cs2val); cpu_register_physical_memory(OMAP_CS2_BASE, OMAP_CS2_SIZE, io); - io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs3val); + io = cpu_register_io_memory(static_readfn, static_writefn, &cs3val); cpu_register_physical_memory(OMAP_CS3_BASE, OMAP_CS3_SIZE, io); fl_idx = 0; @@ -167,7 +167,7 @@ static void sx1_init(ram_addr_t ram_size, cpu_register_physical_memory(OMAP_CS1_BASE, flash1_size, (phys_flash = qemu_ram_alloc(flash1_size)) | IO_MEM_ROM); - io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs1val); + io = cpu_register_io_memory(static_readfn, static_writefn, &cs1val); cpu_register_physical_memory(OMAP_CS1_BASE + flash1_size, OMAP_CS1_SIZE - flash1_size, io); @@ -179,7 +179,7 @@ static void sx1_init(ram_addr_t ram_size, } fl_idx++; } else { - io = cpu_register_io_memory(0, static_readfn, static_writefn, &cs1val); + io = cpu_register_io_memory(static_readfn, static_writefn, &cs1val); cpu_register_physical_memory(OMAP_CS1_BASE, OMAP_CS1_SIZE, io); } |