translate: fix popret goto usage

This commit is contained in:
fridtjof 2025-08-25 22:21:33 +02:00
parent ef4679fca8
commit 0fcddb1ecf

View file

@ -1669,9 +1669,8 @@ static bool trans_pop(DisasContext *ctx, arg_pop *a) {
// basically, JUMP RA
ctx->base.is_jmp = DISAS_NORETURN;
tcg_gen_goto_tb(0);
tcg_gen_mov_i32(pc, r[CR16C_REGNO_RA]);
tcg_gen_exit_tb(ctx->base.tb, 0);
tcg_gen_lookup_and_goto_ptr();
}
return true;
}