Received: from eggs.gnu.org ([2001:4830:134:3::10]:56611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLal0-0003py-JM for qemu-devel@nongnu.org; Fri, 08 Jul 2016 14:44:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLakw-0006bH-Dy for qemu-devel@nongnu.org; Fri, 08 Jul 2016 14:44:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLakw-0006bD-8Q for qemu-devel@nongnu.org; Fri, 08 Jul 2016 14:44:06 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 735873F724 for ; Fri, 8 Jul 2016 18:44:05 +0000 (UTC) Date: Fri, 8 Jul 2016 15:44:02 -0300 From: Eduardo Habkost Message-ID: <20160708184402.GN4131@thinpad.lan.raisama.net> References: <1467990099-27853-1-git-send-email-dgilbert@redhat.com> <1467990099-27853-2-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467990099-27853-2-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 1/5] x86: Provide TCG_PHYS_ADDR_BITS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, marcel@redhat.com, mst@redhat.com, kraxel@redhat.com On Fri, Jul 08, 2016 at 04:01:35PM +0100, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Provide a constant for the number of address bits supported under TCG. > > Signed-off-by: Dr. David Alan Gilbert > Suggested-by: Eduardo Habkost Reviewed-by: Eduardo Habkost > --- > target-i386/cpu.h | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/target-i386/cpu.h b/target-i386/cpu.h > index 474b0b9..b3162b7 100644 > --- a/target-i386/cpu.h > +++ b/target-i386/cpu.h > @@ -1403,11 +1403,13 @@ uint64_t cpu_get_tsc(CPUX86State *env); > /* XXX: This value should match the one returned by CPUID > * and in exec.c */ > # if defined(TARGET_X86_64) > -# define PHYS_ADDR_MASK 0xffffffffffLL > +# define TCG_PHYS_ADDR_BITS 40 > # else > -# define PHYS_ADDR_MASK 0xfffffffffLL > +# define TCG_PHYS_ADDR_BITS 36 > # endif > > +#define PHYS_ADDR_MASK MAKE_64BIT_MASK(0, TCG_PHYS_ADDR_BITS) > + > #define cpu_init(cpu_model) CPU(cpu_x86_init(cpu_model)) > > #define cpu_signal_handler cpu_x86_signal_handler > -- > 2.7.4 > -- Eduardo