summaryrefslogtreecommitdiffstats
path: root/hw/ide
diff options
context:
space:
mode:
authorBALATON Zoltan2021-10-15 03:06:20 +0200
committerPhilippe Mathieu-Daudé2021-10-18 00:41:36 +0200
commit2792cf20ca7eed0e354a0ed731422411faca4908 (patch)
tree78b1882ffceb38dee407d12db25d161c2b45db2a /hw/ide
parentvt82c686: Add a method to VIA_ISA to raise ISA interrupts (diff)
downloadqemu-2792cf20ca7eed0e354a0ed731422411faca4908.tar.gz
qemu-2792cf20ca7eed0e354a0ed731422411faca4908.tar.xz
qemu-2792cf20ca7eed0e354a0ed731422411faca4908.zip
via-ide: Avoid using isa_get_irq()
Use via_isa_set_irq() which better encapsulates irq handling in the vt82xx model and avoids using isa_get_irq() that has a comment saying it should not be used. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <26cb1848c9fc0360df7a57c2c9ba5e03c4a692b5.1634259980.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/ide')
-rw-r--r--hw/ide/via.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ide/via.c b/hw/ide/via.c
index e91dad632a..82def819c4 100644
--- a/hw/ide/via.c
+++ b/hw/ide/via.c
@@ -29,7 +29,7 @@
#include "migration/vmstate.h"
#include "qemu/module.h"
#include "sysemu/dma.h"
-
+#include "hw/isa/vt82c686.h"
#include "hw/ide/pci.h"
#include "trace.h"
@@ -112,7 +112,7 @@ static void via_ide_set_irq(void *opaque, int n, int level)
d->config[0x70 + n * 8] &= ~0x80;
}
- qemu_set_irq(isa_get_irq(NULL, 14 + n), level);
+ via_isa_set_irq(pci_get_function_0(d), 14 + n, level);
}
static void via_ide_reset(DeviceState *dev)