From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVKuN-00058j-SU for qemu-devel@nongnu.org; Wed, 12 Jul 2017 12:54:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVKuN-0004l8-9b for qemu-devel@nongnu.org; Wed, 12 Jul 2017 12:54:39 -0400 Sender: Richard Henderson References: <149942760788.8972.474351671751194003.stgit@frigg.lan> <149942834870.8972.2146924083027836035.stgit@frigg.lan> <87bmoq9g13.fsf@linaro.org> From: Richard Henderson Message-ID: Date: Wed, 12 Jul 2017 06:53:25 -1000 MIME-Version: 1.0 In-Reply-To: <87bmoq9g13.fsf@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v12 03/27] target: [tcg] Use a generic enum for DISAS_ values List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , =?UTF-8?Q?Llu=c3=ads_Vilanova?= Cc: qemu-devel@nongnu.org, "Emilio G. Cota" , Peter Crosthwaite , Paolo Bonzini , Peter Maydell , "Edgar E. Iglesias" , Eduardo Habkost , Michael Walle , Laurent Vivier , Chris Wulff , Marek Vasut , Stafford Horne , Alexander Graf , Guan Xuetao , Max Filippov , "open list:ARM" On 07/11/2017 11:10 PM, Alex Bennée wrote: >> +typedef enum DisasJumpType { >> + DISAS_NEXT, >> + DISAS_TOO_MANY, > > Is DISAS_TOO_MANY really a useful distinction. Sure we have ended the > loop because of an instruction limit but the more important information > is what it means for the epilogue code and how we go to the next block. Yes. I think it is. The reason is that it is the way that the generic loop can tell the target hook that it terminated the instruction fetch loop. There may (or may not) be something special that the target needs to do for that specific case. r~