qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Alex Rozenman <Alex_Rozenman@mentor.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	Paul Brook <paul@codesourcery.com>,
	Vladimir Pilko <Vladimir_Pilko@mentor.com>,
	qemu-devel@nongnu.org, Alex Rozenman <rozenman@gmail.com>
Subject: Re: [Qemu-devel] [PATCH] Fix SWI (SVC) instruction in THUMB.
Date: Tue, 25 Dec 2012 23:00:45 +0000	[thread overview]
Message-ID: <CAFEAcA9O7w2kq-ptv6oPU7L-P76w9H4FBFjHhWtNP3qKTHf14A@mail.gmail.com> (raw)
In-Reply-To: <1356445309-12508-1-git-send-email-Alex_Rozenman@mentor.com>

On 25 December 2012 14:21, Alex Rozenman <Alex_Rozenman@mentor.com> wrote:
> target-arm/helper.c (do_interrupt_v7m): When do_interrupt_v7m is called,
> PC is already points to a correct instruction (after the SVC one). Don't
> modify the PC here.

Looks plausible, but (a) your commit message doesn't make it clear that this bug
only applies to SWI on M profile cores, not AR, and (b) could probably
use the comment that is present in the AR-core equivalent of this code:
 /* The PC already points to the next instruction.  */

This is one of those "surprised nobody's noticed this one before" bugs, do
the RTOSes we've tested with really not use SWI?

-- PMM

  reply	other threads:[~2012-12-25 23:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-25 14:21 [Qemu-devel] [PATCH] Fix SWI (SVC) instruction in THUMB Alex Rozenman
2012-12-25 23:00 ` Peter Maydell [this message]
2012-12-25 23:04   ` Peter Maydell

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=CAFEAcA9O7w2kq-ptv6oPU7L-P76w9H4FBFjHhWtNP3qKTHf14A@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=Alex_Rozenman@mentor.com \
    --cc=Vladimir_Pilko@mentor.com \
    --cc=aliguori@us.ibm.com \
    --cc=paul@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rozenman@gmail.com \
    /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).