Received: from eggs.gnu.org ([2001:4830:134:3::10]:57755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c76X9-00083Z-4r for qemu-devel@nongnu.org; Wed, 16 Nov 2016 15:10:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c76X5-0004jW-Sm for qemu-devel@nongnu.org; Wed, 16 Nov 2016 15:10:15 -0500 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:35982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c76X5-0004ix-Ll for qemu-devel@nongnu.org; Wed, 16 Nov 2016 15:10:11 -0500 Received: by mail-wm0-x22c.google.com with SMTP id g23so263754706wme.1 for ; Wed, 16 Nov 2016 12:10:11 -0800 (PST) Sender: Richard Henderson References: <20161116153705.30206-1-bobby.prani@gmail.com> <878tsjto24.fsf@linaro.org> From: Richard Henderson Message-ID: Date: Wed, 16 Nov 2016 21:10:07 +0100 MIME-Version: 1.0 In-Reply-To: <878tsjto24.fsf@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] translate-all: Enable locking debug in a debug build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Pranith Kumar Cc: qemu-devel@nongnu.org, pbonzini@redhat.com On 11/16/2016 04:57 PM, Alex Bennée wrote: >> > +#define assert_tb_locked() do { \ >> > + tcg_debug_assert(have_tb_lock); \ >> > + } while (0) >> > + >> > +#define assert_tb_unlocked() do { \ >> > + tcg_debug_assert(!have_tb_lock); \ >> > + } while (0) >> > + > I'm not sure we need all this multi-line stuff for a simple > substitution? Richard? > I wouldn't think so, no. r~