qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 08/11] target-arm: introduce tbflag for CPSR.


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v3 08/11] target-arm: introduce tbflag for CPSR.E
Date: Thu, 26 Jun 2014 15:33:40 +0100

On 21 June 2014 13:58, Paolo Bonzini <address@hidden> wrote:
> Together with the existing tb flag for SCTLR.B, this governs the
> endianness of data accesses.  Note that TARGET_WORDS_BIGENDIAN is
> not used, the two flags are enough because linux-user/main.c
> initializes SCTRL.B and CPSR.E correctly.
>
> Similar to bswap_code, the new predicate arm_tbflag_is_data_be only
> honors SCTLR.B in user-mode emulation.  For system-mode emulation,
> SCTLR.B only affects the bottom two bits of the address and all accesses
> are little endian.
>
> Now that CPSR.E is handled at translation time, implementing setend will
> be trivial.
>
> Signed-off-by: Paolo Bonzini <address@hidden>

Reviewed-by: Peter Maydell <address@hidden>

thanks
-- PMM



reply via email to

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