aboutsummaryrefslogtreecommitdiff
path: root/target-sh4
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-17 18:48:31 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-17 18:48:31 +0000
commit9854bc4662906a60c35c64c1e5b4d76eee4ac631 (patch)
tree9c70eb9fec70e4955acf27f4accf66ce789ba13c /target-sh4
parent978efd6aac65bc1e025472859eb738839425318b (diff)
SH4 rts fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1987 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4')
-rw-r--r--target-sh4/translate.c4
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;