intc/xilinx_intc: Use qemu_set_irq

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>
This commit is contained in:
Peter Crosthwaite 2013-06-06 16:38:03 +00:00 committed by Michael Tokarev
parent 45f0b0434d
commit 5c9f43363a
1 changed files with 1 additions and 5 deletions

View 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