From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LBOsx-0005gM-9I for qemu-devel@nongnu.org; Sat, 13 Dec 2008 02:25:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LBOst-0005en-Kh for qemu-devel@nongnu.org; Sat, 13 Dec 2008 02:25:58 -0500 Received: from [199.232.76.173] (port=35976 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LBOst-0005eb-Fw for qemu-devel@nongnu.org; Sat, 13 Dec 2008 02:25:55 -0500 Received: from mail-fx0-f11.google.com ([209.85.220.11]:52704) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LBOss-0006am-UW for qemu-devel@nongnu.org; Sat, 13 Dec 2008 02:25:55 -0500 Received: by fxm4 with SMTP id 4so641086fxm.10 for ; Fri, 12 Dec 2008 23:25:54 -0800 (PST) Message-ID: Date: Sat, 13 Dec 2008 09:25:54 +0200 From: "Blue Swirl" Subject: Re: [Qemu-devel] [5949] target-ppc: memory load/store rework In-Reply-To: <20081213011803.GC9457@miranda.arrow> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081213011803.GC9457@miranda.arrow> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 12/13/08, Stuart Brady wrote: > On Mon, Dec 08, 2008 at 06:11:22PM +0000, Aurelien Jarno wrote: > > - Don't swap values twice for bit-reverse load/store functions > > in little endian mode. > > If I've read this correctly, it seems to me that we would still swap > twice on little endian hosts when when emulating little endian mode or > performing bit-reverse loads/stores. Bit-reverse loads/stores under > little endian emulation on a little endian host would have actually > resulted in *three* byteswaps! > > I'm not sure what the performance impact of this would be, but it's > something that I've been wondering about while working on PA-RISC > emulation, which will also need to provide a little endian mode. Jocelyn sent a patch to address this. There were some (small) problems with it, so please read the full thread: http://lists.gnu.org/archive/html/qemu-devel/2007-10/msg00289.html