qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Rodrigo Vivi" <rodrigo.vivi@gmail.com>
To: qemu-devel@nongnu.org
Cc: Lauro Ramos Venancio <lauro.venancio@indt.org.br>
Subject: Re: [Qemu-devel] qemu-arm: wrong execution of post-indexed loads when Rm and Rd are the same register
Date: Thu, 15 Mar 2007 17:32:12 -0300	[thread overview]
Message-ID: <bdb0025f0703151332j36d31aa7i6ee2cea9bfb29a94@mail.gmail.com> (raw)
In-Reply-To: <200703152003.21276.paul@codesourcery.com>

Hi Paul,

On 3/15/07, Paul Brook <paul@codesourcery.com> wrote:
> On Thursday 15 March 2007 19:35, Lauro Ramos Venancio wrote:
> > Qemu-arm is wrongly executing post-indexed loads when Rm and Rd are
> > the same register. For example:
> >
> > ldr r0, [r1], +r0
> >
> > Current behavior:
> > r0 <- [r1]
> > r1 <- r1 + r0
> >
> > Expected behavior:
> > addr <- r1
> > r1 <- r1 + r0
> > r0 <- [addr]
>
> This is still wrong.
So, is this a known bug?

> The writeback must happen after the load.
We code like this because
- we didn't find this restriction in arm reference manual
- the LLVM uses this instruction expecting a result like this
- That was the result that we got running these instructions in an OMAP1710

> Your
> implementation will give incorrect results if the load faults.

Another thing, is that in this manual (at page A2-18) there are 2
rules for data abort:
- Base Restored Abort Model and Base Updated Abort Model.

So, we can not understand why it will give incorect results if a load faults...

>
> Paul

thanks
Rodrigo Vivi
vivijim at freenode

>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

  reply	other threads:[~2007-03-15 20:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15 19:35 [Qemu-devel] qemu-arm: wrong execution of post-indexed loads when Rm and Rd are the same register Lauro Ramos Venancio
2007-03-15 19:43 ` [Qemu-devel] " Lauro Ramos Venancio
2007-03-15 20:03 ` [Qemu-devel] " Paul Brook
2007-03-15 20:32   ` Rodrigo Vivi [this message]
2007-03-15 21:10     ` Paul Brook
2007-03-15 21:19       ` Rodrigo Vivi
2007-03-15 21:55       ` Laurent Desnogues
2007-03-15 22:04         ` Paul Brook
2007-03-16 20:42           ` Lauro Ramos Venancio

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=bdb0025f0703151332j36d31aa7i6ee2cea9bfb29a94@mail.gmail.com \
    --to=rodrigo.vivi@gmail.com \
    --cc=lauro.venancio@indt.org.br \
    --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).