mirror of https://github.com/xemu-project/xemu.git
gt64xxx: remove gt64120_{read, write}_config().
They call only pci_default_{read, write}_config(). So they aren't necessary. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
fb58a897fd
commit
e0fe020441
13
hw/gt64xxx.c
13
hw/gt64xxx.c
|
@ -1082,17 +1082,6 @@ static void gt64120_reset(void *opaque)
|
||||||
gt64120_pci_mapping(s);
|
gt64120_pci_mapping(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t gt64120_read_config(PCIDevice *d, uint32_t address, int len)
|
|
||||||
{
|
|
||||||
return pci_default_read_config(d, address, len);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void gt64120_write_config(PCIDevice *d, uint32_t address, uint32_t val,
|
|
||||||
int len)
|
|
||||||
{
|
|
||||||
pci_default_write_config(d, address, val, len);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void gt64120_save(QEMUFile* f, void *opaque)
|
static void gt64120_save(QEMUFile* f, void *opaque)
|
||||||
{
|
{
|
||||||
PCIDevice *d = opaque;
|
PCIDevice *d = opaque;
|
||||||
|
@ -1125,7 +1114,7 @@ PCIBus *pci_gt64120_init(qemu_irq *pic)
|
||||||
pic, 144, 4);
|
pic, 144, 4);
|
||||||
s->ISD_handle = cpu_register_io_memory(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),
|
d = pci_register_device(s->pci->bus, "GT64120 PCI Bus", sizeof(PCIDevice),
|
||||||
0, gt64120_read_config, gt64120_write_config);
|
0, NULL, NULL);
|
||||||
|
|
||||||
/* FIXME: Malta specific hw assumptions ahead */
|
/* FIXME: Malta specific hw assumptions ahead */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue