aboutsummaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-04 20:29:59 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-04 20:29:59 +0000
commitf32d7ec5375356a5d08cbda9d39b4ea97ef42e9d (patch)
tree2c7daf78367106c68dec480f0a92f97d8b4f20fc /hw/sun4m.c
parent389d4a259c723492a946d26986c7734700043c05 (diff)
Show IRQ set or reset (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4016 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index 79130c13da..201797b331 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -258,12 +258,15 @@ void cpu_check_irqs(CPUState *env)
int old_interrupt = env->interrupt_index;
env->interrupt_index = TT_EXTINT | i;
- if (old_interrupt != env->interrupt_index)
+ if (old_interrupt != env->interrupt_index) {
+ DPRINTF("Set CPU IRQ %d\n", i);
cpu_interrupt(env, CPU_INTERRUPT_HARD);
+ }
break;
}
}
} else if (!env->pil_in && (env->interrupt_index & ~15) == TT_EXTINT) {
+ DPRINTF("Reset CPU IRQ %d\n", env->interrupt_index & 15);
env->interrupt_index = 0;
cpu_reset_interrupt(env, CPU_INTERRUPT_HARD);
}