From patchwork Sat Jun 2 19:29:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 162448 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F29B3B6F9A for ; Sun, 3 Jun 2012 05:52:59 +1000 (EST) Received: from localhost ([::1]:49273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sau27-0008W1-S1 for incoming@patchwork.ozlabs.org; Sat, 02 Jun 2012 15:30:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sau1c-0007Eb-4R for qemu-devel@nongnu.org; Sat, 02 Jun 2012 15:30:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sau1W-00015c-KE for qemu-devel@nongnu.org; Sat, 02 Jun 2012 15:30:11 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:51433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sau1W-000106-BO for qemu-devel@nongnu.org; Sat, 02 Jun 2012 15:30:06 -0400 Received: by pbbro12 with SMTP id ro12so4727782pbb.4 for ; Sat, 02 Jun 2012 12:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=OLu64m2jVDze+PHj47261SvQ2dHkiUWGs2oFmGSQe60=; b=ybAxa/jxbSOo1sdXJ2LS5d1MyxPHqzY739kRU7b35VhEiMIar3UmWgAbvrAo5sW7v0 ECnmQ/11YY1C3+cTxhADUmE+nii7HE0EAjZufyAPu7d5dkOpt5gGjoyvH5xXsyX+dzdL drRCR7SBQVUU5k1kOZ5OGK9P+jSRgtQ1pyR6UzXnFlNtLtXZW090CrNB2qa9xj4ZB/t4 WKELPKvmLjUf4QahYmJceqFaM9uxbTmTI2qjFDfk+OSI49Pn+PuuEFwF7xOUEflC8H4c V/9CmgE3JnwWiA9B0ASS31F8VNSakNbUu9falusso7WgqDsr0wGMwI4WFDp/ZSLF+zCm r3Ew== Received: by 10.68.197.136 with SMTP id iu8mr22985482pbc.111.1338665404419; Sat, 02 Jun 2012 12:30:04 -0700 (PDT) Received: from anchor.twiddle.home ([173.160.232.49]) by mx.google.com with ESMTPS id z2sm7176147pbv.34.2012.06.02.12.30.03 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Jun 2012 12:30:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 2 Jun 2012 12:29:53 -0700 Message-Id: <1338665397-20917-3-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1338665397-20917-1-git-send-email-rth@twiddle.net> References: <1338665397-20917-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.45 Cc: Riku Voipio Subject: [Qemu-devel] [PATCH 2/6] alpha-linux-user: Work around hosted mmap allocation problems X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson --- target-alpha/cpu.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index 99f9ee1..0d87fa7 100644 --- a/target-alpha/cpu.h +++ b/target-alpha/cpu.h @@ -40,9 +40,20 @@ #define TARGET_PAGE_BITS 13 +#ifdef CONFIG_USER_ONLY +/* ??? The kernel likes to give addresses in high memory. If the host has + more virtual address space than the guest, this can lead to impossible + allocations. Honor the long-standing assumption that only kernel addrs + are negative, but otherwise allow allocations anywhere. This could lead + to tricky emulation problems for programs doing tagged addressing, but + that's far fewer than encounter the impossible allocation problem. */ +#define TARGET_PHYS_ADDR_SPACE_BITS 63 +#define TARGET_VIRT_ADDR_SPACE_BITS 63 +#else /* ??? EV4 has 34 phys addr bits, EV5 has 40, EV6 has 44. */ #define TARGET_PHYS_ADDR_SPACE_BITS 44 #define TARGET_VIRT_ADDR_SPACE_BITS (30 + TARGET_PAGE_BITS) +#endif /* Alpha major type */ enum {