]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commitdiff
intc/xilinx_intc: Use qemu_set_irq
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Thu, 6 Jun 2013 16:38:03 +0000 (16:38 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 11 Jun 2013 19:45:43 +0000 (23:45 +0400)
Use qemu_set_irq rather than if-elsing qemu_irq_(lower|raise). No
functional change, just reduces verbosity.

Cc: qemu-trivial@nongnu.org
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/intc/xilinx_intc.c

index b106e724ab23423dca2c6e5efcd073baf4a4e06d..5df7008e2fdc4d802fc74ef143841ac789df8fc7 100644 (file)
@@ -66,11 +66,7 @@ static void update_irq(struct xlx_pic *p)
         i = ~0;
 
     p->regs[R_IVR] = i;
-    if ((p->regs[R_MER] & 1) && p->regs[R_IPR]) {
-        qemu_irq_raise(p->parent_irq);
-    } else {
-        qemu_irq_lower(p->parent_irq);
-    }
+    qemu_set_irq(p->parent_irq, (p->regs[R_MER] & 1) && p->regs[R_IPR]);
 }
 
 static uint64_t