From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUzix-0005Wj-3k for qemu-devel@nongnu.org; Tue, 11 Jul 2017 14:17:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUziv-00075x-Q3 for qemu-devel@nongnu.org; Tue, 11 Jul 2017 14:17:26 -0400 Sender: Richard Henderson References: <20170711175937.23140-1-alex.bennee@linaro.org> <20170711175937.23140-5-alex.bennee@linaro.org> From: Richard Henderson Message-ID: Date: Tue, 11 Jul 2017 08:16:12 -1000 MIME-Version: 1.0 In-Reply-To: <20170711175937.23140-5-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v3 4/6] target/arm/translate: ensure gen_goto_tb sets exit flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , peter.maydell@linaro.org, cota@braap.org Cc: qemu-devel@nongnu.org, "open list:ARM" On 07/11/2017 07:59 AM, Alex Bennée wrote: > if (use_goto_tb(s, dest)) { > tcg_gen_goto_tb(n); > gen_set_pc_im(s, dest); > tcg_gen_exit_tb((uintptr_t)s->tb + n); > + s->is_jmp = DISAS_TB_JUMP; > } else { > gen_set_pc_im(s, dest); > gen_goto_ptr(); > + s->is_jmp = DISAS_JUMP; > } I think DISAS_TB_JUMP is appropriate for both cases. When not using goto_tb, the jump is still static and we still chain to the next TB via goto_ptr. Otherwise, Reviewed-by: Richard Henderson r~