From: Daniel Jacobowitz <drow@false.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [ARM] add with PC in argument
Date: Mon, 25 Feb 2008 12:34:06 -0500 [thread overview]
Message-ID: <20080225173406.GA1601@caradoc.them.org> (raw)
In-Reply-To: <47C169A0.1020705@wanadoo.fr>
On Sun, Feb 24, 2008 at 01:57:04PM +0100, claude vittoria wrote:
> Hello,
>
> I got a problem in an IRQ handler of mutek OS
> (https://www-asim.lip6.fr/trac/mutekh), target ARM Integrator/CM
> 922T-XA10. I try to port it on Qemu. A porting has been done for Skyeyes
>
> So in qemu I don't get the same comportement. The add of lr = pc + 4
> gives lr = pc + 8 into qemu.
> I think that s->pc += 4 at start of disas_arm_insn alters the result.
> Could you confirm ?
All ARM mode instructions (at least, on modern ARMs) read PC as
current instruction + 8. The code you've posted looks wrong.
IIRC there were some older ARM processors with a different value.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-02-25 17:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-24 12:57 [Qemu-devel] [ARM] add with PC in argument claude vittoria
2008-02-25 17:34 ` Daniel Jacobowitz [this message]
2008-02-25 17:53 ` Laurent Desnogues
-- strict thread matches above, loose matches on Subject: below --
2008-02-26 7:55 claude vittoria
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=20080225173406.GA1601@caradoc.them.org \
--to=drow@false.org \
--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.