qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 9/9] cpu-exec.c: avoid AREG0 use
Date: Sun, 22 May 2011 18:10:29 +0100	[thread overview]
Message-ID: <BANLkTikv=ckUDFQVxY-XXGdGirshqBxBVw@mail.gmail.com> (raw)
In-Reply-To: <BANLkTikQrjADtpBeCdQy2oJPN8zyBMf2zA@mail.gmail.com>

On 22 May 2011 17:55, Blue Swirl <blauwirbel@gmail.com> wrote:
> For ARM, the handcrafted instructions below need to be changed to save also r7:
>    /* stmdb sp!, { r4 - r6, r8 - r11, lr } */
>    tcg_out32(s, (COND_AL << 28) | 0x092d4f70);
>
>    /* ldmia sp!, { r4 - r6, r8 - r11, pc } */
>    tcg_out32(s, (COND_AL << 28) | 0x08bd8f70);

That would be ...ff0 rather than ...f70 in both cases
(bottom 16 bits are a bit map of registers being saved/loaded):

    /* stmdb sp!, { r4 - r11, lr } */
    tcg_out32(s, (COND_AL << 28) | 0x092d4ff0);

    /* ldmia sp!, { r4 - r11, pc } */
    tcg_out32(s, (COND_AL << 28) | 0x08bd8ff0);

-- PMM

  reply	other threads:[~2011-05-22 17:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-22 11:18 [Qemu-devel] [PATCH 9/9] cpu-exec.c: avoid AREG0 use Blue Swirl
2011-05-22 16:55 ` Blue Swirl
2011-05-22 17:10   ` Peter Maydell [this message]
2011-05-22 17:33     ` Laurent Desnogues
2011-05-22 18:01       ` Peter Maydell
2011-05-23 22:01   ` Aurelien Jarno

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='BANLkTikv=ckUDFQVxY-XXGdGirshqBxBVw@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --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).