On 4 June 2014 08:48, Paolo Bonzini <pbonz...@redhat.com> 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