From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Aka-0003xt-G7 for qemu-devel@nongnu.org; Thu, 26 Jun 2014 10:34:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0AkT-0003P3-9L for qemu-devel@nongnu.org; Thu, 26 Jun 2014 10:34:08 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:40107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0AkT-0003Of-3T for qemu-devel@nongnu.org; Thu, 26 Jun 2014 10:34:01 -0400 Received: by mail-lb0-f174.google.com with SMTP id u10so3036180lbd.33 for ; Thu, 26 Jun 2014 07:34:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1403355502-12288-9-git-send-email-pbonzini@redhat.com> References: <1403355502-12288-1-git-send-email-pbonzini@redhat.com> <1403355502-12288-9-git-send-email-pbonzini@redhat.com> From: Peter Maydell Date: Thu, 26 Jun 2014 15:33:40 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v3 08/11] target-arm: introduce tbflag for CPSR.E List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: QEMU Developers On 21 June 2014 13:58, Paolo Bonzini 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 Reviewed-by: Peter Maydell thanks -- PMM