From f8321a76cfaffc3c4fb5646784c9c71f6a87dc09 Mon Sep 17 00:00:00 2001 From: fridtjof Date: Mon, 25 Aug 2025 22:21:33 +0200 Subject: [PATCH] translate: fix popret goto usage --- target/cr16c/translate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/cr16c/translate.c b/target/cr16c/translate.c index 3a24754e86..e204af9fa3 100644 --- a/target/cr16c/translate.c +++ b/target/cr16c/translate.c @@ -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; }