[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
- [Qemu-devel] [PATCH v3 04/11] linux-user: arm: set CPSR.E correctly for BE8 mode, (continued)
- [Qemu-devel] [PATCH v3 04/11] linux-user: arm: set CPSR.E correctly for BE8 mode, Paolo Bonzini, 2014/06/21
- [Qemu-devel] [PATCH v3 06/11] target-arm: implement SCTLR.EE, Paolo Bonzini, 2014/06/21
- [Qemu-devel] [PATCH v3 05/11] linux-user: arm: handle CPSR.E correctly in strex emulation, Paolo Bonzini, 2014/06/21
- [Qemu-devel] [PATCH v3 07/11] target-arm: pass DisasContext to gen_aa32_ld*/st*, Paolo Bonzini, 2014/06/21
- [Qemu-devel] [PATCH v3 08/11] target-arm: introduce tbflag for CPSR.E, Paolo Bonzini, 2014/06/21
- Re: [Qemu-devel] [PATCH v3 08/11] target-arm: introduce tbflag for CPSR.E,
Peter Maydell <=
- [Qemu-devel] [PATCH v3 09/11] target-arm: implement setend, Paolo Bonzini, 2014/06/21
- [Qemu-devel] [PATCH v3 10/11] target-arm: reorganize gen_aa32_ld/st to prepare for BE32 system emulation, Paolo Bonzini, 2014/06/21
- [Qemu-devel] [PATCH v3 11/11] target-arm: implement BE32 mode in system emulation, Paolo Bonzini, 2014/06/21