From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9FUq-0006iT-LU for qemu-devel@nongnu.org; Wed, 16 Dec 2015 12:04:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9FUl-0008Rh-VU for qemu-devel@nongnu.org; Wed, 16 Dec 2015 12:04:12 -0500 Sender: Richard Henderson References: <1449773244-17078-1-git-send-email-serge.fdrv@gmail.com> <566B5E9E.8040108@twiddle.net> <566C7D38.4040609@gmail.com> <566EEC05.2080702@twiddle.net> <56707FD3.20705@gmail.com> From: Richard Henderson Message-ID: <56719970.9000106@twiddle.net> Date: Wed, 16 Dec 2015 09:03:44 -0800 MIME-Version: 1.0 In-Reply-To: <56707FD3.20705@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-*: Get rid of "PC advancement" trick List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Fedorov , qemu-devel@nongnu.org Cc: Peter Maydell , Eduardo Habkost , Anthony Green , Alexander Graf , Max Filippov , Michael Walle , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, "Edgar E. Iglesias" , Paolo Bonzini , Guan Xuetao , Leon Alrae , Aurelien Jarno , Jia Liu On 12/15/2015 01:02 PM, Sergey Fedorov wrote: >> For that, I think it might be interesting to arrange for non-empty TBs to >> exit prior to recognizing a breakpoint. So that a breakpoint TB is always >> just the one operation. Except for the fact that "generate an exception" has >> traditionally been a target-specific helper, we could almost make the entire >> breakpoint generation be done in common code. >> >> I'd think something like a generic "must we end the TB now" predicate would >> be the proper hook. It would contain all of the usual stuff: tcg_op_buf_full >> and checks for singlestep, but then add "is there a breakpoint at the next pc". > > This could be a next step :) Or perhaps a first step, since the patch you posted doesn't seem to me to be an improvement at all, merely a rearrangement of code. r~