Received: from eggs.gnu.org ([2001:4830:134:3::10]:40621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aueth-0006bf-AI for qemu-devel@nongnu.org; Mon, 25 Apr 2016 07:41:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auete-0004Yo-4F for qemu-devel@nongnu.org; Mon, 25 Apr 2016 07:41:49 -0400 Received: from treacle.ucs.ed.ac.uk ([129.215.16.102]:57175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auetd-0004WC-S8 for qemu-devel@nongnu.org; Mon, 25 Apr 2016 07:41:46 -0400 References: <571A3DE5.4010209@sms.ed.ac.uk> From: Tom Spink Message-ID: <571E0252.4020803@sms.ed.ac.uk> Date: Mon, 25 Apr 2016 12:41:06 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: [Qemu-devel] ARM PC-relative Loads, and TBs in soft MMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 23/04/16 13:21, Peter Maydell wrote: > TBs are looked up by (virtual) PC + flags + physical address, so if > the same lump of code is mapped at two different virtual addresses > we'll translate it twice. (More precisely, tb_find_fast() checks > only the virtual address, but it does so in a cache which is > invalidated when the guest does a TLB invalidate operation; if > the cache misses we fall back to tb_find_slow() which also checks > physical address.) > > thanks Thank-you very much for your explanation, and taking the time to respond. > -- PMM Much appreciated! -- Kindest Regards, Tom Spink University of Edinburgh The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.