qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 4/8] linux-user: arm: handle CPSR.E correctly


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v2 4/8] linux-user: arm: handle CPSR.E correctly in strex emulation
Date: Wed, 4 Jun 2014 09:30:23 +0100

On 4 June 2014 08:48, Paolo Bonzini <address@hidden> wrote:
> Il 03/06/2014 11:54, Peter Maydell ha scritto:
>>
>> In system emulation it's clear how we should implement
>>
>> things: TARGET_WORDS_BIGENDIAN is never set, data
>> accesses honour CPSR.E by doing MO_BE or MO_LE accesses,
>> instruction accesses are always MO_LE, and SCTLR.B
>> is implemented by XORing the address with 3 (for
>> byte accesses) or 1 (for halfword accesses).

> I think it's 2 for halfword accesses. :)

Doh :-)

> What about 64-bit accesses?  Does the processor swap
> the two words of the result?

Yes. (There's a helpful table describing this in
section O.3.2 (in Appendix O) of the v7 ARM ARM.)

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]