From patchwork Tue Mar 30 18:11:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 49406 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 22ACAB7CF0 for ; Tue, 6 Apr 2010 03:53:31 +1000 (EST) Received: from localhost ([127.0.0.1]:43808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyqUK-0008O8-5f for incoming@patchwork.ozlabs.org; Mon, 05 Apr 2010 13:53:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyqEp-0003En-0x for qemu-devel@nongnu.org; Mon, 05 Apr 2010 13:37:27 -0400 Received: from [140.186.70.92] (port=47485 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyqEm-0003Db-9z for qemu-devel@nongnu.org; Mon, 05 Apr 2010 13:37:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NyqEk-0001Bu-O4 for qemu-devel@nongnu.org; Mon, 05 Apr 2010 13:37:24 -0400 Received: from are.twiddle.net ([75.149.56.221]:60859) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NyqEk-0001BU-FL for qemu-devel@nongnu.org; Mon, 05 Apr 2010 13:37:22 -0400 Received: by are.twiddle.net (Postfix, from userid 5000) id 617BAC65; Mon, 5 Apr 2010 10:37:21 -0700 (PDT) Message-Id: <81fcff29c3a538767f7b317af63f4b93bf754a67.1270488612.git.rth@twiddle.net> In-Reply-To: References: From: Richard Henderson Date: Tue, 30 Mar 2010 11:11:18 -0700 To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: blauwirbel@gmail.com Subject: [Qemu-devel] [PATCH 1/7] target-sparc: Fix TARGET_{PHYS, VIRT}_ADDR_SPACE_BITS. 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 The 32 and 64-bit definitions were swapped in the ifdef. Signed-off-by: Richard Henderson --- target-sparc/cpu.h | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 580f4d4..0e7f390 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -7,18 +7,18 @@ #define TARGET_LONG_BITS 32 #define TARGET_FPREGS 32 #define TARGET_PAGE_BITS 12 /* 4k */ +#define TARGET_PHYS_ADDR_SPACE_BITS 36 +#define TARGET_VIRT_ADDR_SPACE_BITS 32 +#else +#define TARGET_LONG_BITS 64 +#define TARGET_FPREGS 64 +#define TARGET_PAGE_BITS 13 /* 8k */ #define TARGET_PHYS_ADDR_SPACE_BITS 41 # ifdef TARGET_ABI32 # define TARGET_VIRT_ADDR_SPACE_BITS 32 # else # define TARGET_VIRT_ADDR_SPACE_BITS 44 # endif -#else -#define TARGET_LONG_BITS 64 -#define TARGET_FPREGS 64 -#define TARGET_PAGE_BITS 13 /* 8k */ -#define TARGET_PHYS_ADDR_SPACE_BITS 36 -#define TARGET_VIRT_ADDR_SPACE_BITS 32 #endif #define CPUState struct CPUSPARCState