summaryrefslogtreecommitdiffstats
path: root/hw/fw_cfg.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/fw_cfg.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/fw_cfg.c')
-rw-r--r--hw/fw_cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c
index 8ac0e9d..276c396 100644
--- a/hw/fw_cfg.c
+++ b/hw/fw_cfg.c
@@ -266,12 +266,12 @@ void *fw_cfg_init(uint32_t ctl_port, uint32_t data_port,
register_ioport_write(data_port, 1, 1, fw_cfg_io_writeb, s);
}
if (ctl_addr) {
- io_ctl_memory = cpu_register_io_memory(0, fw_cfg_ctl_mem_read,
+ io_ctl_memory = cpu_register_io_memory(fw_cfg_ctl_mem_read,
fw_cfg_ctl_mem_write, s);
cpu_register_physical_memory(ctl_addr, FW_CFG_SIZE, io_ctl_memory);
}
if (data_addr) {
- io_data_memory = cpu_register_io_memory(0, fw_cfg_data_mem_read,
+ io_data_memory = cpu_register_io_memory(fw_cfg_data_mem_read,
fw_cfg_data_mem_write, s);
cpu_register_physical_memory(data_addr, FW_CFG_SIZE, io_data_memory);
}
OpenPOWER on IntegriCloud