diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2015-07-27 12:55:58 +0200 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-07-27 07:25:40 -0700 |
commit | bbeb82395eaca0e3c38b433b2d2a5bad4a5fbd81 (patch) | |
tree | 535ceb6cee9d95f0689af7c527679a1c0b5a8f6a /tcg | |
parent | 7df69deadf2f25c19b3ac121404ee31f71dce845 (diff) | |
download | qemu-bbeb82395eaca0e3c38b433b2d2a5bad4a5fbd81.zip |
tcg: mark temps as mem_coherent = 0 for mov with a constant
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>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |