From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVDj0-0000W8-Kw for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:14:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVDix-0007iS-HB for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:14:26 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:33460) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVDix-0007iL-9z for qemu-devel@nongnu.org; Wed, 12 Jul 2017 05:14:23 -0400 Received: by mail-wr0-f180.google.com with SMTP id r103so24873736wrb.0 for ; Wed, 12 Jul 2017 02:14:23 -0700 (PDT) References: <149942760788.8972.474351671751194003.stgit@frigg.lan> <149942859571.8972.4761014660099212028.stgit@frigg.lan> <87h8yialdo.fsf@linaro.org> <87zicaf2t3.fsf@frigg.lan> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <87zicaf2t3.fsf@frigg.lan> Date: Wed, 12 Jul 2017 10:13:20 +0100 Message-ID: <87a84a9fwv.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v12 04/27] target: [tcg] Add generic translation framework List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Llu=C3=ADs?= Vilanova Cc: Paolo Bonzini , Peter Crosthwaite , "Emilio G. Cota" , qemu-devel@nongnu.org, Richard Henderson Lluís Vilanova writes: > Alex Bennée writes: > >> Lluís Vilanova writes: > >>> Signed-off-by: Lluís Vilanova >>> + >>> + translate_block_tcg_check(db); >>> + } > >> This may be a personal taste thing but having while(true) {} and breaks >> is harder to follow than do { stuff } while (!done); > > I think it is. I prefer to see the loop condition up-front, unless a do-while > makes the condition logic substantially simpler. Yes but in this case the condition is "go forever" unless we break (or goto) out. I'd be happy with the while at the top if it was an actual condition. -- Alex Bennée