Skip to content

Commit

Permalink
intc/xilinx_intc: Use qemu_set_irq
Browse files Browse the repository at this point in the history
Use qemu_set_irq rather than if-elsing qemu_irq_(lower|raise). No
functional change, just reduces verbosity.

Cc: [email protected]

Signed-off-by: Peter Crosthwaite <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
pete128 authored and Michael Tokarev committed Jun 11, 2013
1 parent 45f0b04 commit 5c9f433
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hw/intc/xilinx_intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c9f433

Please sign in to comment.