From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcQ1i-0006ZS-RH for qemu-devel@nongnu.org; Fri, 01 Nov 2013 21:29:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcQ1a-0000j9-Dp for qemu-devel@nongnu.org; Fri, 01 Nov 2013 21:29:22 -0400 Received: from mail-pd0-x22c.google.com ([2607:f8b0:400e:c02::22c]:35580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcQ1a-0000j4-5g for qemu-devel@nongnu.org; Fri, 01 Nov 2013 21:29:14 -0400 Received: by mail-pd0-f172.google.com with SMTP id w10so4568681pde.31 for ; Fri, 01 Nov 2013 18:29:13 -0700 (PDT) Sender: Richard Henderson Message-ID: <52745565.2080101@twiddle.net> Date: Fri, 01 Nov 2013 18:29:09 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1383073495-5332-1-git-send-email-sebastian@macke.de> <1383073495-5332-6-git-send-email-sebastian@macke.de> <5270399A.1080907@macke.de> In-Reply-To: <5270399A.1080907@macke.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 05/13] target-openrisc: Remove TLB flush on exception List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Macke , Peter Maydell Cc: openrisc@openrisc.net, openrisc@lists.opencores.org, QEMU Developers , Ethan Hunt On 10/29/2013 03:41 PM, Sebastian Macke wrote: > > What is included in the tb hash? The virtual pc + physical page + the tb_flags? > Not the mmu_index? What's included is everything you return from cpu_get_tb_cpu_state. Note that cs_base is an interesting case. On i386 real mode, it's what the name implies -- the code segment base. On sparc, we (ab)use it to handle an insn beginning from a delay slot. (On Sparc, pc is the current insn, and npc is the next insn. For straight-line code, npc = pc + 4. After a branch, npc is the branch target. After every insn, the cpu copies pc = npc.) See my response to Peter for info re mmu_index. r~