提交 2c8d9340 编写于 作者: G Gerd Hoffmann 提交者: malc

isapc: Fix irq routing

Only send irqs to ioapic in case we have one.
Fixes qemu segfault.
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 c4a735f9
......@@ -100,6 +100,7 @@ static void isa_irq_handler(void *opaque, int n, int level)
if (n < 16) {
qemu_set_irq(isa->i8259[n], level);
}
if (isa->ioapic)
qemu_set_irq(isa->ioapic[n], level);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册