mirror of https://gitee.com/openkylin/qemu.git
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:
parent
45f0b0434d
commit
5c9f43363a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue