aboutsummaryrefslogtreecommitdiff
path: root/hw/etraxfs_dma.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-05 12:25:35 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-05 12:25:35 +0200
commit7a3161bafbda89f08701601a7b6d27329548ce62 (patch)
treeff6a174cf6649d53c4010e307c40170f76ed931d /hw/etraxfs_dma.c
parent65a650c2a5ed2f33357ba9d29d0f56f6b131333a (diff)
ETRAX: Simplify interrupt signaling.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/etraxfs_dma.c')
-rw-r--r--hw/etraxfs_dma.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/etraxfs_dma.c b/hw/etraxfs_dma.c
index 47236378e0..e4bc82438b 100644
--- a/hw/etraxfs_dma.c
+++ b/hw/etraxfs_dma.c
@@ -392,10 +392,8 @@ static void channel_update_irq(struct fs_dma_ctrl *ctrl, int c)
c,
ctrl->channels[c].regs[R_MASKED_INTR]));
- if (ctrl->channels[c].regs[R_MASKED_INTR])
- qemu_irq_raise(ctrl->channels[c].irq[0]);
- else
- qemu_irq_lower(ctrl->channels[c].irq[0]);
+ qemu_set_irq(ctrl->channels[c].irq[0],
+ !!ctrl->channels[c].regs[R_MASKED_INTR]);
}
static int channel_out_run(struct fs_dma_ctrl *ctrl, int c)