From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOCNH-0007iT-T2 for qemu-devel@nongnu.org; Wed, 30 May 2018 21:27:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOCNG-0007GF-S4 for qemu-devel@nongnu.org; Wed, 30 May 2018 21:27:31 -0400 Sender: Richard Henderson References: <20180531011321.3119-1-richard.henderson@linaro.org> From: Richard Henderson Message-ID: <0fb6ee09-59a9-a416-ae36-8193f3d7962e@twiddle.net> Date: Wed, 30 May 2018 18:27:18 -0700 MIME-Version: 1.0 In-Reply-To: <20180531011321.3119-1-richard.henderson@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] tcg: Pass tb and index to tcg_gen_exit_tb separately List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , qemu-devel@nongnu.org Cc: Peter Maydell , "Edgar E. Iglesias" , Paolo Bonzini , Eduardo Habkost , Michael Walle , Laurent Vivier , Aurelien Jarno , Yongbok Kim , Anthony Green , Chris Wulff , Marek Vasut , Stafford Horne , David Gibson , Alexander Graf , Michael Clark , Palmer Dabbelt , Sagar Karandikar , Bastian Koppelmann , Cornelia Huck , David Hildenbrand , Mark Cave-Ayland , Artyom Tarasenko , Guan Xuetao , Max Filippov , "open list:ARM" , "open list:PowerPC" , "open list:S390" On 05/30/2018 06:13 PM, Richard Henderson wrote: > +void tcg_gen_exit_tb(TranslationBlock *tb, unsigned idx) > +{ > + uintptr_t val = (uintptr_t)tb + idx; > + > + if (tb == NULL) { > + tcg_debug_assert(idx == 0); > + } else if (idx <= 1) { > + /* This is an exit following a goto_tb. Verify that we have > + seen this numbered exit before, via tcg_gen_goto_tb. */ > + tcg_debug_assert(tcg_ctx->goto_tb_issue_mask & (1 << idx)); Ho hum -- #ifdef needed around this statement. For some reason goto_tb_issue_mask is itself #ifdef'ed. r~