Commit eb173de6a2f32e91a63bf857b4b6a248629d6ff1
1 parent
390efc54
Correct interrupt masking for etrax timers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4427 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/etraxfs_timer.c
... | ... | @@ -174,7 +174,7 @@ static void timer_update_irq(struct fs_timer_t *t) |
174 | 174 | t->r_masked_intr = t->r_intr & t->rw_intr_mask; |
175 | 175 | |
176 | 176 | D(printf("%s: masked_intr=%x\n", __func__, t->r_masked_intr)); |
177 | - if (t->r_masked_intr & 1) | |
177 | + if (t->r_masked_intr) | |
178 | 178 | qemu_irq_raise(t->irq[0]); |
179 | 179 | else |
180 | 180 | qemu_irq_lower(t->irq[0]); | ... | ... |