aboutsummaryrefslogtreecommitdiff
path: root/hw/etraxfs_timer.c
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-11 14:58:19 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-11 14:58:19 +0000
commiteb173de6a2f32e91a63bf857b4b6a248629d6ff1 (patch)
tree2dc06d7e32531266a6c8659fc4cb5615403fb32c /hw/etraxfs_timer.c
parent390efc54fb87e91ac9aeb47a7bc23806452b30cb (diff)
Correct interrupt masking for etrax timers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4427 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/etraxfs_timer.c')
-rw-r--r--hw/etraxfs_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/etraxfs_timer.c b/hw/etraxfs_timer.c
index 498f8a7aae..9d8799f214 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]);