diff options
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r-- | target-sh4/translate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c index e7dd1b5bcc..b08d25a15a 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1120,7 +1120,9 @@ int gen_intermediate_code_internal(CPUState * env, TranslationBlock * tb, ctx.sr = env->sr; ctx.fpscr = env->fpscr; ctx.memidx = (env->sr & SR_MD) ? 1 : 0; - ctx.delayed_pc = env->delayed_pc; + /* We don't know if the delayed pc came from a dynamic or static branch, + so assume it is a dynamic branch. */ + ctx.delayed_pc = -1; ctx.tb = tb; ctx.singlestep_enabled = env->singlestep_enabled; nb_gen_labels = 0; |