From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEjkf-0005Rk-UE for qemu-devel@nongnu.org; Wed, 28 Aug 2013 13:41:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEjka-00025j-Qv for qemu-devel@nongnu.org; Wed, 28 Aug 2013 13:41:53 -0400 Received: from [2a03:4000:1::4e2f:c7ac:d] (port=55077 helo=v220110690675601.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEjka-00025O-KD for qemu-devel@nongnu.org; Wed, 28 Aug 2013 13:41:48 -0400 Message-ID: <521E364A.6020408@weilnetz.de> Date: Wed, 28 Aug 2013 19:41:30 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1377664796-11698-1-git-send-email-sw@weilnetz.de> <521E09DF.20102@twiddle.net> <521E16B3.3030008@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] Streamlining endian handling in TCG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel , Aurelien Jarno , Richard Henderson Am 28.08.2013 18:38, schrieb Peter Maydell: > On 28 August 2013 16:26, Richard Henderson wrote: > >> (D) Profit! I'm not sure what will be left of TARGET_WORDS_BIGENDIAN at this >> point. Possibly only if we leave the current translator interface in place in >> step A. > I think there are a number of devices and boards which use it > as a convenient shortcut, but we can fix those -- the TCG > reliance on knowing about the target endianness is the > hard part of the problem, I think. > > -- PMM In my personal code base (git://repo.or.cz/qemu/ar7.git), I had removed lots of TARGET_WORDS_BIGENDIAN some years ago when I started code changes to combine MIPS big and little endian in one executable (still unfinished :-(, sorry). I added a 'bool bigendian' to CPUArchState. Richard, MIPS can be added to your list of architectures which might profit from your proposed changes. Regards, Stefan