diff --git a/hw/etraxfs_timer.c b/hw/etraxfs_timer.c index 498f8a7aae343a8b05bd7d4053539018bd84b85c..9d8799f2145601e272740a46c5329b7edb16ac8a 100644 --- a/hw/etraxfs_timer.c +++ b/hw/etraxfs_timer.c @@ -174,7 +174,7 @@ static void timer_update_irq(struct fs_timer_t *t) t->r_masked_intr = t->r_intr & t->rw_intr_mask; D(printf("%s: masked_intr=%x\n", __func__, t->r_masked_intr)); - if (t->r_masked_intr & 1) + if (t->r_masked_intr) qemu_irq_raise(t->irq[0]); else qemu_irq_lower(t->irq[0]);