]> git.proxmox.com Git - qemu.git/blobdiff - hw/acpi.c
Unify IRQ handling.
[qemu.git] / hw / acpi.c
index 78c4feabbf7fcf6472d3463fff590a3afe3d54f2..e78e56d6287b7641e7fe2b51da2a7f5c8bd8881f 100644 (file)
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -92,7 +92,7 @@ static void pm_update_sci(PIIX4PMState *s)
     pmsts = get_pmsts(s);
     sci_level = (((pmsts & s->pmen) & 
                   (RTC_EN | PWRBTN_EN | GBL_EN | TMROF_EN)) != 0);
-    pci_set_irq(&s->dev, 0, sci_level);
+    qemu_set_irq(s->dev.irq[0], sci_level);
     /* schedule a timer interruption if needed */
     if ((s->pmen & TMROF_EN) && !(pmsts & TMROF_EN)) {
         expire_time = muldiv64(s->tmr_overflow_time, ticks_per_sec, PM_FREQ);