From patchwork Sat Mar 13 22:36:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 47722 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 7A739B7D2E for ; Sun, 14 Mar 2010 09:40:31 +1100 (EST) Received: from localhost ([127.0.0.1]:44686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nqa0K-0005BY-8t for incoming@patchwork.ozlabs.org; Sat, 13 Mar 2010 17:40:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NqZzl-0005B5-2K for qemu-devel@nongnu.org; Sat, 13 Mar 2010 17:39:45 -0500 Received: from [199.232.76.173] (port=41835 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqZzk-0005Ah-6C for qemu-devel@nongnu.org; Sat, 13 Mar 2010 17:39:44 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NqZzi-0002JM-KM for qemu-devel@nongnu.org; Sat, 13 Mar 2010 17:39:43 -0500 Received: from mx20.gnu.org ([199.232.41.8]:9756) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NqZzh-0002Ig-VW for qemu-devel@nongnu.org; Sat, 13 Mar 2010 17:39:42 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NqZza-0006OO-Rc for qemu-devel@nongnu.org; Sat, 13 Mar 2010 17:39:35 -0500 Received: from flocke.weilnetz.de (p54ADD4A3.dip.t-dialin.net [84.173.212.163]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MaE2a-1O63SW0Zqa-00Jxep; Sat, 13 Mar 2010 23:36:28 +0100 Received: from stefan by flocke.weilnetz.de with local (Exim 4.71) (envelope-from ) id 1NqZwT-0001j4-W2; Sat, 13 Mar 2010 23:36:22 +0100 From: Stefan Weil To: QEMU Developers X-Mailer: git-send-email 1.7.0 X-Provags-ID: V01U2FsdGVkX1/01nPJxXKaHoIghfGu33ImHxCHBuEqfW45ki/ IuUzRLLkmLi4tgfhSfHQnmYNGzQA2G/sIXMjXt5VATurzYzWI5 WPFENFO0ilC6ZXHUhYp8F3+oCnnM2finb+Pw6I1dhWcaj84FDJ LoQ== X-detected-operating-system: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: aurelien@aurel32.net Subject: [Qemu-devel] [PATCH] target-mips: Fix 32 bit mode (wrong size of physical addresses) 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 Commit 30724e758a21ba9f807efafe268626bd479db9de breaks malta (and other) mips 32 bit emulation. Fixing the physical address size for 32 bit machines makes it work again. Signed-off-by: Stefan Weil --- target-mips/mips-defs.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-mips/mips-defs.h b/target-mips/mips-defs.h index c57de02..dc1ac80 100644 --- a/target-mips/mips-defs.h +++ b/target-mips/mips-defs.h @@ -14,7 +14,7 @@ #define TARGET_VIRT_ADDR_SPACE_BITS 42 #else #define TARGET_LONG_BITS 32 -#define TARGET_PHYS_ADDR_SPACE_BITS 36 +#define TARGET_PHYS_ADDR_SPACE_BITS 32 #define TARGET_VIRT_ADDR_SPACE_BITS 32 #endif