From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6pHZ-0007YV-2o for qemu-devel@nongnu.org; Tue, 27 Apr 2010 14:13:17 -0400 Received: from [140.186.70.92] (port=42272 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6pHX-0007X3-Kr for qemu-devel@nongnu.org; Tue, 27 Apr 2010 14:13:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6pHV-0002m9-Uq for qemu-devel@nongnu.org; Tue, 27 Apr 2010 14:13:15 -0400 Received: from are.twiddle.net ([75.149.56.221]:46944) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6pHV-0002le-Pe for qemu-devel@nongnu.org; Tue, 27 Apr 2010 14:13:13 -0400 Message-ID: <4BD72936.3080408@twiddle.net> Date: Tue, 27 Apr 2010 11:13:10 -0700 From: Richard Henderson MIME-Version: 1.0 Subject: Re: [Qemu-devel] Help getting an qemu-alpha environment to work References: <20100424155146.GB17412@zensonic.dk> <4BD395EE.2090409@twiddle.net> <20100427060003.GA30029@zensonic.dk> In-Reply-To: <20100427060003.GA30029@zensonic.dk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu@zensonic.dk Cc: qemu-devel@nongnu.org On 04/26/2010 11:00 PM, qemu@zensonic.dk wrote: > 1. avoid the problem? (Give the guest a larger valid address space) Assuming that you don't have a guest program that (ab)uses the "known unused" high bits of the address for type tagging pointers (common in some lisp and virtual machine interpreters, including emacs), then you can simply change target-alpha/cpu.h: -#define TARGET_VIRT_ADDR_SPACE_BITS (30 + TARGET_PAGE_BITS) +#define TARGET_VIRT_ADDR_SPACE_BITS 63 I know for a fact that glibc *does* use the msb for some pointer tagging, so you can't use 64 here. I don't think that's actually a problem for any current Linux host. If you only care about amd64 as the host, you can reduce this number to 47 and save 2 levels of lookup in the address space tables. r~