From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmi3P-0004ia-6S for qemu-devel@nongnu.org; Tue, 29 Aug 2017 11:03:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmi3L-0007kS-UE for qemu-devel@nongnu.org; Tue, 29 Aug 2017 11:03:47 -0400 Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]:33951) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmi3L-0007k6-OC for qemu-devel@nongnu.org; Tue, 29 Aug 2017 11:03:43 -0400 Received: by mail-pg0-x236.google.com with SMTP id y15so11633692pgc.1 for ; Tue, 29 Aug 2017 08:03:43 -0700 (PDT) References: <20170829063313.10237-1-bobby.prani@gmail.com> <20170829063313.10237-5-bobby.prani@gmail.com> From: Richard Henderson Message-ID: <125ae0ee-8104-5b52-6b4b-22622ba56191@linaro.org> Date: Tue, 29 Aug 2017 08:03:39 -0700 MIME-Version: 1.0 In-Reply-To: <20170829063313.10237-5-bobby.prani@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v3 PATCH 5/5] tcg/softmmu: Increase size of TLB caches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pranith Kumar , alex.bennee@linaro.org, Paolo Bonzini , Peter Crosthwaite , Claudio Fontana , Andrzej Zaborowski , Aurelien Jarno , Alexander Graf , Stefan Weil , "open list:Overall" , "open list:AArch64 target" On 08/28/2017 11:33 PM, Pranith Kumar wrote: > +#if HOST_LONG_BITS == 32 && TARGET_LONG_BITS == 32 > +#define TCG_TARGET_TLB_MAX_INDEX_BITS 28 > +#else > +#define TCG_TARGET_TLB_MAX_INDEX_BITS 27 > +#endif > + For the record, did it not work to actually write (32 - CPU_TLB_BITS)? I'm not fond of repeating the conditions that go into computing CPU_TLB_BITS. r~