From d03d11260ee2d55579e8b76116e35ccdf5031833 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Thu, 13 Jan 2011 15:14:04 +0100 Subject: 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(+) (limited to 'target-cris') diff --git a/target-cris/translate.c b/target-cris/translate.c index e09aaa9e9d..f4cc1252a5 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; } -- cgit v1.2.3