From: Paul Hartke Date: Sun, 13 Dec 2009 02:22:24 +0000 (+0100) Subject: microblaze: Correct branch to registers. X-Git-Tag: TizenStudio_2.0_p2.3~6286 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efa2521b7a75e943f5426d58a52246982a78e05e;p=sdk%2Femulator%2Fqemu.git microblaze: Correct branch to registers. Signed-off-by: Edgar E. Iglesias --- diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 44f4db0..85dcf86 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -1019,7 +1019,7 @@ static void dec_br(DisasContext *dc) if (dc->imm == 0) t_gen_raise_exception(dc, EXCP_DEBUG); } else { - if (dc->tb_flags & IMM_FLAG) { + if (!dc->type_b || (dc->tb_flags & IMM_FLAG)) { tcg_gen_movi_tl(env_btaken, 1); tcg_gen_movi_tl(env_btarget, dc->pc); tcg_gen_add_tl(env_btarget, env_btarget, *(dec_alu_op_b(dc)));