aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2020-03-24 21:05:17 +0000
committerJohn Snow <jsnow@redhat.com>2020-03-27 14:30:08 -0400
commitb93858756982ec76a36d4140765efad5ce0fbd5f (patch)
tree02896f6fe3001406938b975f2f5b5729bcdc2258
parentd6ef883d9d79f0f2f84df4c5e4d0d6c5eda79237 (diff)
downloadqemu-b93858756982ec76a36d4140765efad5ce0fbd5f.zip
qemu-b93858756982ec76a36d4140765efad5ce0fbd5f.tar.gz
qemu-b93858756982ec76a36d4140765efad5ce0fbd5f.tar.bz2
via-ide: don't use PCI level for legacy IRQs
The PCI level calculation was accidentally left in when rebasing from a previous patchset. Since both IRQs are driven separately, the value being passed into the IRQ handler should be used directly. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-id: 20200324210519.2974-2-mark.cave-ayland@ilande.co.uk Signed-off-by: John Snow <jsnow@redhat.com>
-rw-r--r--hw/ide/via.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/ide/via.c b/hw/ide/via.c
index 8de4945..2a55b7f 100644
--- a/hw/ide/via.c
+++ b/hw/ide/via.c
@@ -112,7 +112,6 @@ static void via_ide_set_irq(void *opaque, int n, int level)
d->config[0x70 + n * 8] &= ~0x80;
}
- level = (d->config[0x70] & 0x80) || (d->config[0x78] & 0x80);
qemu_set_irq(isa_get_irq(NULL, 14 + n), level);
}