diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-05 12:25:35 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-05 12:25:35 +0200 |
commit | 7a3161bafbda89f08701601a7b6d27329548ce62 (patch) | |
tree | ff6a174cf6649d53c4010e307c40170f76ed931d /hw/etraxfs_timer.c | |
parent | 65a650c2a5ed2f33357ba9d29d0f56f6b131333a (diff) | |
download | qemu-7a3161bafbda89f08701601a7b6d27329548ce62.tar.gz qemu-7a3161bafbda89f08701601a7b6d27329548ce62.tar.bz2 qemu-7a3161bafbda89f08701601a7b6d27329548ce62.zip |
ETRAX: Simplify interrupt signaling.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/etraxfs_timer.c')
-rw-r--r-- | hw/etraxfs_timer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/etraxfs_timer.c b/hw/etraxfs_timer.c index 1144369b1c..6b3d17e355 100644 --- a/hw/etraxfs_timer.c +++ b/hw/etraxfs_timer.c @@ -178,10 +178,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) - qemu_irq_raise(t->irq[0]); - else - qemu_irq_lower(t->irq[0]); + qemu_set_irq(t->irq[0], !!t->r_masked_intr); } static void timer0_hit(void *opaque) |