On Tue, Sep 6, 2022 at 12:09 PM Richard Henderson <richard.hender...@linaro.org> wrote: > > Drop the unused dest argument to gen_jr(). > Remove most of the calls to gen_jr, and use DISAS_JUMP. > Remove some unused loads of eip for lcall and ljmp.
The only use outside i386_tr_tb_stop is here: static void gen_goto_tb(DisasContext *s, int tb_num, target_ulong eip) { target_ulong pc = s->cs_base + eip; if (translator_use_goto_tb(&s->base, pc)) { /* jump to same page: we can use a direct jump */ tcg_gen_goto_tb(tb_num); gen_jmp_im(s, eip); tcg_gen_exit_tb(s->base.tb, tb_num); s->base.is_jmp = DISAS_NORETURN; } else { /* jump to another page */ gen_jmp_im(s, eip); gen_jr(s); } } Should it set s->base.is_jmp = DISAS_JUMP instead, so that gen_jr() can be inlined into i386_tr_tb_stop() and removed completely? If not, Reviewed-by: Paolo Bonzini <pbonz...@redhat.com> Paolo