Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bh5vI-0006Zi-6R for qemu-devel@nongnu.org; Sun, 04 Jul 2004 08:16:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bh5uw-0006Lk-1V for qemu-devel@nongnu.org; Sun, 04 Jul 2004 08:16:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bh5pT-0003Cw-Hb for qemu-devel@nongnu.org; Sun, 04 Jul 2004 08:10:43 -0400 Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Bh5nF-0001ek-EG for qemu-devel@nongnu.org; Sun, 04 Jul 2004 08:08:25 -0400 Received: from [212.238.201.82] (helo=xi.wantstofly.org) by mx20.gnu.org with esmtp (Exim 4.34) id 1Bh5e7-0007Es-82 for qemu-devel@nongnu.org; Sun, 04 Jul 2004 07:59:04 -0400 Date: Sun, 4 Jul 2004 13:57:30 +0200 From: Lennert Buytenhek Subject: Re: [Qemu-devel] ARM in big endian mode? Message-ID: <20040704115730.GA21047@xi.wantstofly.org> References: <20040703160324.GD8894@xi.wantstofly.org> <1088940620.840.1.camel@sherbert> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1088940620.840.1.camel@sherbert> 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 Sun, Jul 04, 2004 at 12:30:20PM +0100, Gianni Tedesco wrote: > > For a project I'm working on, I would love to be able to simulate an > > ARM in big endian mode (such as the intel xscale core). If I try to > > run an MSB executable on qemu current, I just get this: > > > > # file init > > init: ELF 32-bit MSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, statically linked, stripped > > # qemu-arm ./init > > Error loading ./init > > # > > > > Would it be a lot of effort to add this? > > Compile with TARGET_WORDS_BIGENDIAN 1 ought to do it. That didn't go very well.. % pwd /data/qemu/qemu_cvs/arm-user % cat x.c #include #include int main() { return 0; } % armv5b-softfloat-linux-gcc -Wall -o x x.c -static % file x x: ELF 32-bit MSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, statically linked, not stripped % tail -1 config.h #define TARGET_WORDS_BIGENDIAN 1 % ./qemu-arm ./x qemu: uncaught target signal 11 (Segmentation fault) - exiting % Same binary works fine on my target board. --L