Skip to content

Commit 2792cf2

Browse files
zbalatonphilmd
authored andcommitted
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 <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <26cb1848c9fc0360df7a57c2c9ba5e03c4a692b5.1634259980.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent a4d65b7 commit 2792cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hw/ide/via.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "migration/vmstate.h"
3030
#include "qemu/module.h"
3131
#include "sysemu/dma.h"
32-
32+
#include "hw/isa/vt82c686.h"
3333
#include "hw/ide/pci.h"
3434
#include "trace.h"
3535

@@ -112,7 +112,7 @@ static void via_ide_set_irq(void *opaque, int n, int level)
112112
d->config[0x70 + n * 8] &= ~0x80;
113113
}
114114

115-
qemu_set_irq(isa_get_irq(NULL, 14 + n), level);
115+
via_isa_set_irq(pci_get_function_0(d), 14 + n, level);
116116
}
117117

118118
static void via_ide_reset(DeviceState *dev)

0 commit comments

Comments
 (0)