From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] ARM (Thumb) read from R15
Date: Mon, 2 Jul 2007 14:17:23 +0100 [thread overview]
Message-ID: <200707021417.25887.paul@codesourcery.com> (raw)
In-Reply-To: <200707021312.40022.uli@suse.de>
On Monday 02 July 2007, Ulrich Hecht wrote:
> On Saturday 30 June 2007 04:19, Paul Brook wrote:
> > > QEMU does not set the Thumb bit when reading from R15 in Thumb mode.
> >
> > Neither does real hardware.
>
> You are, unsurprisingly, right. The problem seems to be a different one.
> Quoting the ARM on "pop pc":
>
> "In ARM architecture 5 and above, bit[0] of the loaded value determines
> whether execution continues after this branch in ARM state or in Thumb
> state[...] In T variants of architecture version 4, bit[0] of the loaded
> value is ignored and execution continues in Thumb state[...]"
>
> My code is supposed to run on a 4T. I guess I'll have to implement an
> ARM_FEATURE_THUMB1.
As you have found out, qemu doesn't currently emulate v4t. There are a couple
of other instructions that should be disabled (blx) if you do this.
Paul
prev parent reply other threads:[~2007-07-02 13:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-28 14:31 [Qemu-devel] [PATCH] ARM (Thumb) read from R15 Ulrich Hecht
2007-06-28 15:30 ` Ulrich Hecht
2007-06-28 15:53 ` Ulrich Hecht
2007-06-30 2:19 ` Paul Brook
2007-07-02 11:12 ` Ulrich Hecht
2007-07-02 13:17 ` Paul Brook [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=200707021417.25887.paul@codesourcery.com \
--to=paul@codesourcery.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 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.