diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2020-03-13 08:24:41 +0000 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2020-03-16 21:08:21 -0400 |
commit | 3a514010aba088c9d5005b2e62048a61761a12d4 (patch) | |
tree | 95ce7fefef95fbea69f6611029a671f5de5d94d5 /hw/ide/via.c | |
parent | 7ff81d6357ad3ce31bc96f830b000bac37dafb41 (diff) | |
download | qemu-3a514010aba088c9d5005b2e62048a61761a12d4.zip qemu-3a514010aba088c9d5005b2e62048a61761a12d4.tar.gz qemu-3a514010aba088c9d5005b2e62048a61761a12d4.tar.bz2 |
via-ide: ensure that PCI_INTERRUPT_LINE is hard-wired to its default value
Some firmwares accidentally write to PCI_INTERRUPT_LINE on startup which has
no effect on real hardware since it is hard-wired to its default value, but
causes the guest OS to become confused trying to initialise IDE devices
when running under QEMU.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-id: 20200313082444.2439-5-mark.cave-ayland@ilande.co.uk
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'hw/ide/via.c')
-rw-r--r-- | hw/ide/via.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/via.c b/hw/ide/via.c index 3153be8..8363bd4 100644 --- a/hw/ide/via.c +++ b/hw/ide/via.c @@ -169,7 +169,7 @@ static void via_ide_realize(PCIDevice *dev, Error **errp) pci_config_set_prog_interface(pci_conf, 0x8f); /* native PCI ATA mode */ pci_set_long(pci_conf + PCI_CAPABILITY_LIST, 0x000000c0); - dev->wmask[PCI_INTERRUPT_LINE] = 0xf; + dev->wmask[PCI_INTERRUPT_LINE] = 0; memory_region_init_io(&d->data_bar[0], OBJECT(d), &pci_ide_data_le_ops, &d->bus[0], "via-ide0-data", 8); |