]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tcg: mark temps as mem_coherent = 0 for mov with a constant
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 27 Jul 2015 10:55:58 +0000 (12:55 +0200)
committerRichard Henderson <rth@twiddle.net>
Mon, 27 Jul 2015 14:25:40 +0000 (07:25 -0700)
When a constant has to be loaded in a mov op, we fail to set
mem_coherent = 0. This patch fixes that.

Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Message-Id: <1437994568-7825-3-git-send-email-aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg.c

index 9a2508b26187aa64fe9d60095c20c126624486e3..0892a9bbf6782a588b494fcdaad8f02d43c9d0b8 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1894,6 +1894,7 @@ static void tcg_reg_alloc_mov(TCGContext *s, const TCGOpDef *def,
             ts->mem_coherent = 1;
         } else if (ts->val_type == TEMP_VAL_CONST) {
             tcg_out_movi(s, itype, ts->reg, ts->val);
+            ts->mem_coherent = 0;
         }
         s->reg_to_temp[ts->reg] = args[1];
         ts->val_type = TEMP_VAL_REG;