diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index 76472df39ba6ccd7b4f94c77ca12674abea83d07..f36e24abf4eab6dcfc6077bae8f4b886452bbb89 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -984,26 +984,30 @@ PCIBus *pci_gt64120_init(qemu_irq *pic) d = pci_register_device(s->pci->bus, "GT64120 PCI Bus", sizeof(PCIDevice), 0, gt64120_read_config, gt64120_write_config); + /* FIXME: Malta specific hw assumptions ahead */ + d->config[0x00] = 0xab; // vendor_id d->config[0x01] = 0x11; d->config[0x02] = 0x20; // device_id d->config[0x03] = 0x46; - d->config[0x04] = 0x06; + + d->config[0x04] = 0x00; d->config[0x05] = 0x00; d->config[0x06] = 0x80; - d->config[0x07] = 0xa2; + d->config[0x07] = 0x02; + d->config[0x08] = 0x10; d->config[0x09] = 0x00; - d->config[0x0A] = 0x80; - d->config[0x0B] = 0x05; - d->config[0x0C] = 0x08; - d->config[0x0D] = 0x40; - d->config[0x0E] = 0x00; - d->config[0x0F] = 0x00; - d->config[0x17] = 0x08; + d->config[0x0A] = 0x00; + d->config[0x0B] = 0x06; + + d->config[0x10] = 0x08; + d->config[0x14] = 0x08; + d->config[0x17] = 0x01; d->config[0x1B] = 0x1c; d->config[0x1F] = 0x1f; d->config[0x23] = 0x14; + d->config[0x24] = 0x01; d->config[0x27] = 0x14; d->config[0x3D] = 0x01;