qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw/sun4m.c show IRQ set or reset
@ 2008-03-03  0:41 Robert Reif
  0 siblings, 0 replies; only message in thread
From: Robert Reif @ 2008-03-03  0:41 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 66 bytes --]

Show which CPU IRQ is actually being set or reset when debugging.

[-- Attachment #2: irq.diff.txt --]
[-- Type: text/plain, Size: 832 bytes --]

diff -p -u -r1.86 sun4m.c
--- hw/sun4m.c	2 Mar 2008 08:48:47 -0000	1.86
+++ hw/sun4m.c	3 Mar 2008 00:35:29 -0000
@@ -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);
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-03  0:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-03  0:41 [Qemu-devel] [PATCH] hw/sun4m.c show IRQ set or reset Robert Reif

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).