qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Artyom Tarasenko <atar4qemu@googlemail.com>
To: qemu-devel <qemu-devel@nongnu.org>
Cc: Blue Swirl <blauwirbel@gmail.com>
Subject: [Qemu-devel] sparc32 double "Set CPU IRQ 14"
Date: Thu, 6 Aug 2009 11:35:12 +0200	[thread overview]
Message-ID: <fb8d4f70908060235m1a3a47c4r9713b5c695298159@mail.gmail.com> (raw)

I observe double "Set CPU IRQ 14" in the log.  I don't see how  the
real harware would be able to generate the same irq twice, without
resetting it. I put a printf in cpuexec.c:

#elif defined(TARGET_SPARC)
                    if ((interrupt_request & CPU_INTERRUPT_HARD) &&
                        cpu_interrupts_enabled(env)) {
                        int pil = env->interrupt_index & 15;
                        int type = env->interrupt_index & 0xf0;

                        if (((type == TT_EXTINT) &&
                             (pil == 15 || pil > env->psrpil)) ||
                            type != TT_EXTINT) {
                            env->interrupt_request &= ~CPU_INTERRUPT_HARD;
                            env->exception_index = env->interrupt_index;
                            do_interrupt(env);
                            env->interrupt_index = 0;
#if !defined(CONFIG_USER_ONLY)
               printf("cpuexec calls cpu_check_irqs\n");
                            cpu_check_irqs(env);
#endif
                        next_tb = 0;
                        }


And now my log looks like this:

CPUIRQ: Raise CPU IRQ 14
CPUIRQ: Set CPU IRQ 14
cpuexec calls cpu_check_irqs
CPUIRQ: Set CPU IRQ 14

Does it look like cpuexec does an unnecessary call of cpu_check_irqs ?

I've removed this call, and see no difference: OBP works the same,
OpenBIOS too, NetBSD boot log also seems to be the same.

What this call is needed for?

Artyom

             reply	other threads:[~2009-08-06  9:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-06  9:35 Artyom Tarasenko [this message]
2009-08-06 19:54 ` [Qemu-devel] Re: sparc32 double "Set CPU IRQ 14" Blue Swirl

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=fb8d4f70908060235m1a3a47c4r9713b5c695298159@mail.gmail.com \
    --to=atar4qemu@googlemail.com \
    --cc=blauwirbel@gmail.com \
    --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 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).