Skip to content

Commit

Permalink
target/sparc: Always copy conditions into a new temporary
Browse files Browse the repository at this point in the history
This will allow the condition to live across changes to
the global cc variables.

Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Nov 5, 2023
1 parent c8507eb commit 816f89b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion target/sparc/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,8 +1226,9 @@ static const TCGCond gen_tcg_cond_reg[8] = {
static void gen_compare_reg(DisasCompare *cmp, int cond, TCGv r_src)
{
cmp->cond = tcg_invert_cond(gen_tcg_cond_reg[cond]);
cmp->c1 = r_src;
cmp->c1 = tcg_temp_new();
cmp->c2 = 0;
tcg_gen_mov_tl(cmp->c1, r_src);
}

static void gen_op_clear_ieee_excp_and_FTT(void)
Expand Down

0 comments on commit 816f89b

Please sign in to comment.