From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWREj-0000om-NW for qemu-devel@nongnu.org; Sat, 15 Jul 2017 13:52:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWREj-0005Gr-0t for qemu-devel@nongnu.org; Sat, 15 Jul 2017 13:52:13 -0400 Sender: Richard Henderson References: <150002001195.22386.4679134058536830996.stgit@frigg.lan> <150002437386.22386.7745855254236101855.stgit@frigg.lan> <584dade6-5ce0-4950-c0e3-03128bae119e@twiddle.net> <87eftib0bn.fsf@frigg.lan> From: Richard Henderson Message-ID: Date: Sat, 15 Jul 2017 07:52:00 -1000 MIME-Version: 1.0 In-Reply-To: <87eftib0bn.fsf@frigg.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v13 18/26] target/arm: [tcg] Port to breakpoint_check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Peter Maydell , Peter Crosthwaite , "Emilio G. Cota" , "open list:ARM" , Paolo Bonzini , =?UTF-8?Q?Alex_Benn=c3=a9e?= On 07/14/2017 09:56 PM, LluĂ­s Vilanova wrote: >> Another possibility is is_jmp = DISAS_TOO_MANY, and exit the translation loop >> after the breakpoint check only for is_jmp > DISAS_TOO_MANY. That allows all of >> the DISAS_TARGET_N values to exit as well. > > After a quick check, I see that arm uses both (DISAS_NORETURN and > DISAS_TARGET_N) to exit in different points after the breakpoint. Moxie, mips > and unicore32 use use DISAS_NORETURN, and the rest use DISAS_TARGET_N. Of course, because those targets have not yet been ported to this generic infrastructure. I'm saying that we *define* the semantics of the hook to use DISAS_TOO_MANY to translate one more insn. That said, ARM is the *only* target that will use this feature. All others will only use NORETURN. This isn't really any different than the enumerator you were using previously. Anyway, you can see my thoughts on this in the v14 series I posted last night. r~