diff options
author | 2009-06-14 11:38:51 +0300 | |
---|---|---|
committer | 2009-06-16 15:18:37 -0500 | |
commit | 1eed09cb4a0b187427ef1ccefd42579174f20a7c (patch) | |
tree | 10451f9083433986d683085c342dd8c53148e854 /hw/gt64xxx.c | |
parent | kvm: Restrict configure check to Linux (diff) | |
download | qemu-kvm-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.gz qemu-kvm-1eed09cb4a0b187427ef1ccefd42579174f20a7c.tar.bz2 qemu-kvm-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/gt64xxx.c')
-rw-r--r-- | hw/gt64xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index ce3ffe26b..3b44fc9ef 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -1131,7 +1131,7 @@ PCIBus *pci_gt64120_init(qemu_irq *pic) s->pci->bus = pci_register_bus(NULL, "pci", pci_gt64120_set_irq, pci_gt64120_map_irq, pic, 144, 4); - s->ISD_handle = cpu_register_io_memory(0, gt64120_read, gt64120_write, s); + s->ISD_handle = cpu_register_io_memory(gt64120_read, gt64120_write, s); d = pci_register_device(s->pci->bus, "GT64120 PCI Bus", sizeof(PCIDevice), 0, gt64120_read_config, gt64120_write_config); |