From: Peter Maydell <peter.maydell@linaro.org>
To: Johan Karlsson <Johan.Karlsson@enea.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 1/1] arm_gic: gic_update should always update all cores.
Date: Fri, 5 Jun 2015 13:48:51 +0100 [thread overview]
Message-ID: <CAFEAcA-=2-6D+-cj7MFs7zOSwTKq_E=eUm8n94SvAbmdsQJFHA@mail.gmail.com> (raw)
In-Reply-To: <5006DF1F5103294E8DA02CC4C71B1BF8085C0F1C@SESTOEX04.enea.se>
On 13 November 2014 at 17:08, Johan Karlsson <Johan.Karlsson@enea.com> wrote:
> This patch fixes so that gic_update always updates all the cores with new pending irq states.
> If the function returns early it is possible to get interrupts that has already been acknowledged.
>
> Signed-off-by: Johan Karlsson <johan.karlsson@enea.com>
>
> diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c
> index 270ce05..f1641f5 100644
> --- a/hw/intc/arm_gic.c
> +++ b/hw/intc/arm_gic.c
> @@ -61,7 +61,7 @@ void gic_update(GICState *s)
> s->current_pending[cpu] = 1023;
> if (!s->enabled || !s->cpu_enabled[cpu]) {
> qemu_irq_lower(s->parent_irq[cpu]);
> - return;
> + continue;
> }
> best_prio = 0x100;
> best_irq = 1023;
Oops, this dropped through the cracks of the review process, but
Johan just pinged me on IRC about it.
Applied to target-arm.next, thanks.
-- PMM
prev parent reply other threads:[~2015-06-05 12:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 17:08 [Qemu-devel] [PATCH 1/1] arm_gic: gic_update should always update all cores Johan Karlsson
2015-06-05 12:48 ` Peter Maydell [this message]
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='CAFEAcA-=2-6D+-cj7MFs7zOSwTKq_E=eUm8n94SvAbmdsQJFHA@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=Johan.Karlsson@enea.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).