From e32f73a6f2f1a517d54389565d0fe108560aad71 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Thu, 13 Jan 2011 15:14:04 +0100 Subject: [PATCH] cris: Set btaken when storing direct jumps When storing a direct jmp from translation state into runtime state we should set the btaken flag. Signed-off-by: Edgar E. Iglesias --- target-cris/translate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target-cris/translate.c b/target-cris/translate.c index e09aaa9..f4cc125 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -1129,6 +1129,9 @@ static void cris_store_direct_jmp(DisasContext *dc) { /* Store the direct jmp state into the cpu-state. */ if (dc->jmp == JMP_DIRECT || dc->jmp == JMP_DIRECT_CC) { + if (dc->jmp == JMP_DIRECT) { + tcg_gen_movi_tl(env_btaken, 1); + } tcg_gen_movi_tl(env_btarget, dc->jmp_pc); dc->jmp = JMP_INDIRECT; } -- 2.7.4