From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxV3n-0005Ax-4c for qemu-devel@nongnu.org; Thu, 19 Jun 2014 01:39:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxV3d-0007y0-Ma for qemu-devel@nongnu.org; Thu, 19 Jun 2014 01:38:55 -0400 Received: from mail-ie0-x229.google.com ([2607:f8b0:4001:c03::229]:59756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxV3d-0007xq-HY for qemu-devel@nongnu.org; Thu, 19 Jun 2014 01:38:45 -0400 Received: by mail-ie0-f169.google.com with SMTP id at1so1623016iec.0 for ; Wed, 18 Jun 2014 22:38:44 -0700 (PDT) Date: Thu, 19 Jun 2014 07:30:27 +0200 From: "Edgar E. Iglesias" Message-ID: <20140619053027.GA14925@toto> References: <1402444514-19658-1-git-send-email-aggelerf@ethz.ch> <1402444514-19658-8-git-send-email-aggelerf@ethz.ch> <20140617091506.GH10398@toto> <53A0134F.6040402@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53A0134F.6040402@gmail.com> Subject: Re: [Qemu-devel] [PATCH v3 07/32] target-arm: add non-secure Translation Block flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, Fabian Aggeler , qemu-devel@nongnu.org, greg.bellows@linaro.org, christoffer.dall@linaro.org On Tue, Jun 17, 2014 at 02:07:11PM +0400, Sergey Fedorov wrote: > On 17.06.2014 13:15, Edgar E. Iglesias wrote: > > Hi, I think the patch looks OK but I'm unsure if it brings any benefits > > unless we add separate TLBs for S and NS. > > > > I noticed that TTBR0 gets banked in the series, but are changes to > > SCR.NS flushing the TLBs? I might have missed that from the patches. > > You'll need it unless we add separate S/NS TLBs. > > > > Considering that changes to SCR.NS will flush the TLBs, the > > use of a per TB ns flag is limited, unless I am missing something... > > Hi Edgar, > > This seems to be used in patch 19/32. Yes, I actually meant limited use as in having the NS flag in translation time brings limited performance win or none. But looking more carefuly, the way we handle cp regs requires the ns bit at translation time to support direct loads of cpregs (without calling out to tcg helpers). That is probably enough to motivate the tb flag. Cheers, Edgar > > // Sergey > > > > > Cheers, > > Edgar >