Skip to content

Commit

Permalink
tcg: mark temps as mem_coherent = 0 for mov with a constant
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aurel32 authored and rth7680 committed Jul 27, 2015
1 parent 7df69de commit bbeb823
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tcg/tcg.c
Expand Up @@ -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;
Expand Down

0 comments on commit bbeb823

Please sign in to comment.