]> git.proxmox.com Git - mirror_qemu.git/commitdiff
SH4 rts fix.
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 17 Jun 2006 18:48:31 +0000 (18:48 +0000)
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 17 Jun 2006 18:48:31 +0000 (18:48 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1987 c046a42c-6fe2-441c-8c8c-71466251a162

target-sh4/translate.c

index e7dd1b5bcc2af5039e2462e57fd49d28c842dc74..b08d25a15ac3c030345030c47a21914bd8ee42b5 100644 (file)
@@ -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;