From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ws5wV-00058j-Ou for qemu-devel@nongnu.org; Wed, 04 Jun 2014 03:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ws5wM-0005ya-OW for qemu-devel@nongnu.org; Wed, 04 Jun 2014 03:49:03 -0400 Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:39115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ws5wM-0005yQ-G2 for qemu-devel@nongnu.org; Wed, 04 Jun 2014 03:48:54 -0400 Received: by mail-qa0-f52.google.com with SMTP id cm18so6688771qab.11 for ; Wed, 04 Jun 2014 00:48:54 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <538ECF61.1090103@redhat.com> Date: Wed, 04 Jun 2014 09:48:49 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1401392813-29645-1-git-send-email-pbonzini@redhat.com> <1401392813-29645-5-git-send-email-pbonzini@redhat.com> <53882A9D.7010501@redhat.com> <538D9410.7060300@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 4/8] linux-user: arm: handle CPSR.E correctly in strex emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers 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. :) What about 64-bit accesses? Does the processor swap the two words of the result? Paolo