summaryrefslogtreecommitdiffstats
path: root/target/nios2
diff options
context:
space:
mode:
authorRichard Henderson2022-04-21 17:17:22 +0200
committerRichard Henderson2022-04-26 17:17:05 +0200
commit0e6f22c561a5e9e02dcfa535c4573b0344d4b2ba (patch)
tree535c7e4764532f4ed0348101e8c1a41178d37501 /target/nios2
parenttarget/nios2: Use gen_goto_tb for DISAS_TOO_MANY (diff)
downloadqemu-0e6f22c561a5e9e02dcfa535c4573b0344d4b2ba.tar.gz
qemu-0e6f22c561a5e9e02dcfa535c4573b0344d4b2ba.tar.xz
qemu-0e6f22c561a5e9e02dcfa535c4573b0344d4b2ba.zip
target/nios2: Use tcg_gen_lookup_and_goto_ptr
Use lookup_and_goto_ptr for indirect chaining between TBs. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220421151735.31996-52-richard.henderson@linaro.org>
Diffstat (limited to 'target/nios2')
-rw-r--r--target/nios2/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/nios2/translate.c b/target/nios2/translate.c
index 87f3e57d4c..a3e87beba4 100644
--- a/target/nios2/translate.c
+++ b/target/nios2/translate.c
@@ -190,7 +190,7 @@ static void gen_goto_tb(DisasContext *dc, int n, uint32_t dest)
tcg_gen_exit_tb(tb, n);
} else {
tcg_gen_movi_tl(cpu_pc, dest);
- tcg_gen_exit_tb(NULL, 0);
+ tcg_gen_lookup_and_goto_ptr();
}
dc->base.is_jmp = DISAS_NORETURN;
}
@@ -201,7 +201,7 @@ static void gen_jumpr(DisasContext *dc, int regno, bool is_call)
if (is_call) {
tcg_gen_movi_tl(dest_gpr(dc, R_RA), dc->base.pc_next);
}
- tcg_gen_exit_tb(NULL, 0);
+ tcg_gen_lookup_and_goto_ptr();
dc->base.is_jmp = DISAS_NORETURN;
}