summaryrefslogtreecommitdiffstats
path: root/hw/axis_dev88.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-06-14 11:38:51 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:18:37 -0500
commit1eed09cb4a0b187427ef1ccefd42579174f20a7c (patch)
tree10451f9083433986d683085c342dd8c53148e854 /hw/axis_dev88.c
parentdff840348ecde00e196dca1c87d5d365b7e3c985 (diff)
downloadhqemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.zip
hqemu-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.gz
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/axis_dev88.c')
-rw-r--r--hw/axis_dev88.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/axis_dev88.c b/hw/axis_dev88.c
index c4e09dd..2b1925f 100644
--- a/hw/axis_dev88.c
+++ b/hw/axis_dev88.c
@@ -286,11 +286,11 @@ void axisdev88_init (ram_addr_t ram_size,
/* Attach a NAND flash to CS1. */
nand_state.nand = nand_init(NAND_MFR_STMICRO, 0x39);
- nand_regs = cpu_register_io_memory(0, nand_read, nand_write, &nand_state);
+ nand_regs = cpu_register_io_memory(nand_read, nand_write, &nand_state);
cpu_register_physical_memory(0x10000000, 0x05000000, nand_regs);
gpio_state.nand = &nand_state;
- gpio_regs = cpu_register_io_memory(0, gpio_read, gpio_write, &gpio_state);
+ gpio_regs = cpu_register_io_memory(gpio_read, gpio_write, &gpio_state);
cpu_register_physical_memory(0x3001a000, 0x5c, gpio_regs);
OpenPOWER on IntegriCloud