Commit f32d7ec5375356a5d08cbda9d39b4ea97ef42e9d

Authored by blueswir1
1 parent 389d4a25

Show IRQ set or reset (Robert Reif)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4016 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 1 deletions
hw/sun4m.c
... ... @@ -258,12 +258,15 @@ void cpu_check_irqs(CPUState *env)
258 258 int old_interrupt = env->interrupt_index;
259 259  
260 260 env->interrupt_index = TT_EXTINT | i;
261   - if (old_interrupt != env->interrupt_index)
  261 + if (old_interrupt != env->interrupt_index) {
  262 + DPRINTF("Set CPU IRQ %d\n", i);
262 263 cpu_interrupt(env, CPU_INTERRUPT_HARD);
  264 + }
263 265 break;
264 266 }
265 267 }
266 268 } else if (!env->pil_in && (env->interrupt_index & ~15) == TT_EXTINT) {
  269 + DPRINTF("Reset CPU IRQ %d\n", env->interrupt_index & 15);
267 270 env->interrupt_index = 0;
268 271 cpu_reset_interrupt(env, CPU_INTERRUPT_HARD);
269 272 }
... ...