]> git.proxmox.com Git - mirror_qemu.git/commitdiff
cris: Set btaken when storing direct jumps
authorEdgar E. Iglesias <edgar@axis.com>
Thu, 13 Jan 2011 14:14:04 +0000 (15:14 +0100)
committerEdgar E. Iglesias <edgar@axis.com>
Thu, 13 Jan 2011 14:14:04 +0000 (15:14 +0100)
When storing a direct jmp from translation state into
runtime state we should set the btaken flag.

Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
target-cris/translate.c

index e09aaa9e9d13894808b9fb0a0eb093cb683fc8c0..f4cc1252a5a484197b4fa7582cad8e7e4d632498 100644 (file)
@@ -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;
        }