All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: Paul Brook <paul@codesourcery.com>
Cc: Vincent Sanders <vince@simtec.co.uk>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Add ARM920T to ARM emulation
Date: Mon, 1 Jun 2009 12:35:12 +0100	[thread overview]
Message-ID: <20090601113512.GA16957@shareable.org> (raw)
In-Reply-To: <200905292305.28740.paul@codesourcery.com>

Paul Brook wrote:
> > There was some discussion of the differences between v4 and v5 with
> > respect to LDR behaviour manipulating the program counter when the
> > bottom bit of an adress is set. The ARM-ARM clearly defines such
> > behaviour as "unpredicatble" (section A2.4.3 page 48) where it says
> > "In all variants of ARMv4 and ARMv5, bits[1:0] of a value written to
> > R15 in ARM state must be 0b00. If they are not, the results are
> > UNPREDICTABLE." .
> 
> This statement is only applies to instructions that do not have explicit 
> semantics for r15. Use of r15 as a destination in load/pop instructions is 
> well defined.

I notice that ARMv4T adds the BX instruction, implying that B isn't
able to switch to Thumb mode although it can in later architectures (I
never saw the point in BX, and I guess ARM ended up the same :-)

Is the behaviour defined to _not_ switch to Thumb when using B to an
address with the low order bit set, or does it trap, or is it unpredictable?

(While we're here, I would quite like to see the distinction between
ARMv4 and ARMv4T for testing of userspace interworking code, but I'll
add that myself if I need it - as far as I know, the difference would
just be BX/BLX being an illegal instruction, and low-order bit in R15
being ignored.)

-- Jamie

  reply	other threads:[~2009-06-01 11:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29 13:23 [Qemu-devel] Add ARM920T to ARM emulation Vincent Sanders
2009-05-29 13:23 ` [Qemu-devel] [PATCH 1/1] Update ARM emulation to be version 4t by default Vincent Sanders
2009-05-29 21:59   ` Paul Brook
2009-05-30 10:08     ` Vincent Sanders
2009-05-29 22:05 ` [Qemu-devel] Add ARM920T to ARM emulation Paul Brook
2009-06-01 11:35   ` Jamie Lokier [this message]
2009-06-01 12:13     ` Paul Brook
2009-06-01 13:29       ` Avi Kivity
2009-06-01 13:48         ` Tristan Gingold
2009-06-01 13:58           ` Avi Kivity
2009-06-01 16:34         ` Paul Brook
2009-06-01 23:11       ` Jamie Lokier

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=20090601113512.GA16957@shareable.org \
    --to=jamie@shareable.org \
    --cc=paul@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    --cc=vince@simtec.co.uk \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.