From: Robert Reif <reif@earthlink.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] hw/sun4m.c show IRQ set or reset
Date: Sun, 02 Mar 2008 19:41:25 -0500 [thread overview]
Message-ID: <47CB4935.60805@earthlink.net> (raw)
[-- 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);
}
reply other threads:[~2008-03-03 0:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47CB4935.60805@earthlink.net \
--to=reif@earthlink.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.