From: Matt Turner <[email protected]>

The only instance of mid-tb flags change occurs with spr_write_40x_dbcr0,
which already uses DISAS_EXIT_UPDATE.  Therefore we can always use
tcg_gen_goto_jc_tl in preference to tcg_gen_lookup_and_goto_ptr.

Signed-off-by: Matt Turner <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
---
 target/ppc/translate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/ppc/translate.c b/target/ppc/translate.c
index 467b8f3d4ec..a99ab018b80 100644
--- a/target/ppc/translate.c
+++ b/target/ppc/translate.c
@@ -2649,7 +2649,7 @@ static void gen_lookup_and_goto_ptr(DisasContext *ctx)
             pmu_count_insns(ctx);
         }
 
-        tcg_gen_lookup_and_goto_ptr();
+        tcg_gen_goto_jc_tl(cpu_nip);
     }
 }
 
@@ -5164,7 +5164,7 @@ static void ppc_tr_tb_stop(DisasContextBase *dcbase, 
CPUState *cs)
             pmu_count_insns(ctx);
         }
 
-        tcg_gen_lookup_and_goto_ptr();
+        tcg_gen_goto_jc_tl(cpu_nip);
         break;
 
     case DISAS_EXIT_UPDATE:
-- 
2.53.0


Reply via email to