BMDMA interrupt fix (aka Solaris x86 IDE bug fix)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 28 Apr 2005 19:26:35 +0000 (19:26 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 28 Apr 2005 19:26:35 +0000 (19:26 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1421 c046a42c-6fe2-441c-8c8c-71466251a162

hw/ide.c

index 3997a06..d2220ba 100644 (file)
--- a/hw/ide.c
+++ b/hw/ide.c
@@ -499,7 +499,10 @@ static inline void ide_abort_command(IDEState *s)
 
 static inline void ide_set_irq(IDEState *s)
 {
+    BMDMAState *bm = s->bmdma;
     if (!(s->cmd & IDE_CMD_DISABLE_IRQ)) {
+        if (bm)
+            bm->status |= BM_STATUS_INT;
 #ifdef TARGET_PPC
         if (s->openpic) 
             openpic_set_irq(s->openpic, s->irq, 1);