From patchwork Sun May 30 02:25:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Landley X-Patchwork-Id: 53993 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AB70CB7D48 for ; Sun, 30 May 2010 12:27:04 +1000 (EST) Received: from localhost ([127.0.0.1]:42307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIYEK-0001xY-Dz for incoming@patchwork.ozlabs.org; Sat, 29 May 2010 22:26:24 -0400 Received: from [140.186.70.92] (port=59329 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIYDW-0001uR-Hu for qemu-devel@nongnu.org; Sat, 29 May 2010 22:25:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OIYDU-0006ba-A6 for qemu-devel@nongnu.org; Sat, 29 May 2010 22:25:34 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:61576) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIYDT-0006bM-Tw for qemu-devel@nongnu.org; Sat, 29 May 2010 22:25:32 -0400 Received: by vws18 with SMTP id 18so2292521vws.4 for ; Sat, 29 May 2010 19:25:30 -0700 (PDT) Received: by 10.220.59.5 with SMTP id j5mr1877238vch.106.1275186329710; Sat, 29 May 2010 19:25:29 -0700 (PDT) Received: from driftwood.localnet (adsl-99-169-44-161.dsl.austtx.sbcglobal.net [99.169.44.161]) by mx.google.com with ESMTPS id w29sm17605019vcr.2.2010.05.29.19.25.27 (version=SSLv3 cipher=RC4-MD5); Sat, 29 May 2010 19:25:29 -0700 (PDT) From: Rob Landley Organization: Boundaries Unlimited To: qemu-devel@nongnu.org Date: Sat, 29 May 2010 21:25:26 -0500 User-Agent: KMail/1.11.2 (Linux/2.6.28-18-generic; KDE/4.2.2; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201005292125.26794.rob@landley.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] Arm big endian? X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org I'm trying to get arm big endian support to work. I patched the 2.6.33 kernel to pretend that good old versatilepb can have a big endian CPU plugged into it (attached), and then I built a kernel with the attached .config, and qemu went "boing": $ qemu-system-arm -M versatilepb -nographic -no-reboot -kernel zImage-armv4eb -hda image-armv4eb.sqf -append root=/dev/sda rw init=/usr/sbin/init.sh panic=1 PATH=/usr/bin console=ttyAMA0 HOST=armv4eb -net nic,model=rtl8139 -net user qemu: hardware error: pl011_read: Bad offset 6c8 CPU #0: R00=00000000 R01=00000183 R02=00000100 R03=00000000 R04=101f36ca R05=00000000 R06=00000000 R07=00000000 R08=ffffffe4 R09=00000000 R10=00000000 R11=00000000 R12=00000000 R13=00000000 R14=00010088 R15=00010000 PSR=000001db ---- A und32 Aborted It does this with both the release version I have on the host and a recent git (thursday-ish). Does this look more like a kernel error, or a qemu error? Do I need to select a different -cpu emulation? Thanks, Rob --- linux/arch/arm/mach-versatile/Kconfig 2010-05-29 18:44:21.000000000 -0500 +++ linx/arch/arm/mach-versatile/Kconfig 2010-05-29 19:19:38.000000000 -0500 @@ -12,4 +12,12 @@ help Include support for the ARM(R) Versatile/AP platform. +if ARCH_VERSATILE_PB || ARCH_VERSATILE_AB + +config ARCH_SUPPORTS_BIG_ENDIAN + bool + default y + +endif + endmenu