From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJX7g-0001Dx-9z for qemu-devel@nongnu.org; Mon, 09 May 2011 16:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJX7f-0004r7-4m for qemu-devel@nongnu.org; Mon, 09 May 2011 16:32:08 -0400 Received: from mail-iw0-f173.google.com ([209.85.214.173]:56606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJX7e-0004qU-W9 for qemu-devel@nongnu.org; Mon, 09 May 2011 16:32:07 -0400 Received: by iwl42 with SMTP id 42so5510996iwl.4 for ; Mon, 09 May 2011 13:32:06 -0700 (PDT) Sender: Richard Henderson Message-ID: <4DC84F43.1050603@twiddle.net> Date: Mon, 09 May 2011 13:32:03 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1304470768-16924-1-git-send-email-jcmvbkbc@gmail.com> <4DC17FCF.2090706@twiddle.net> <4DC18641.2080904@twiddle.net> <201105092338.46339.jcmvbkbc@gmail.com> In-Reply-To: <201105092338.46339.jcmvbkbc@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 18/28] target-xtensa: implement exceptions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Filippov Cc: qemu-devel@nongnu.org On 05/09/2011 12:38 PM, Max Filippov wrote: > do I understand it right that if I use tb->flags or mem_index to make > decisions during translation, then I must issue exit_tb on > instructions that can change state they reflect? Yes. Quite often it's some sort of branch instruction anyway, such as return-from-interrupt changing from kernel mode back to user mode. However, there are some non-branch instructions that may require the TB to end, such as TLB flushes. r~