qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

target/ppc: Use tcg_gen_abs_i32

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20190423102145.14812-2-f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

authored by

Philippe Mathieu-Daudé and committed by
Richard Henderson
d577dbaa 73f671f1

+1 -13
+1 -13
target/ppc/translate/spe-impl.inc.c
··· 126 126 tcg_temp_free_i32(t0); \ 127 127 } 128 128 129 - static inline void gen_op_evabs(TCGv_i32 ret, TCGv_i32 arg1) 130 - { 131 - TCGLabel *l1 = gen_new_label(); 132 - TCGLabel *l2 = gen_new_label(); 133 - 134 - tcg_gen_brcondi_i32(TCG_COND_GE, arg1, 0, l1); 135 - tcg_gen_neg_i32(ret, arg1); 136 - tcg_gen_br(l2); 137 - gen_set_label(l1); 138 - tcg_gen_mov_i32(ret, arg1); 139 - gen_set_label(l2); 140 - } 141 - GEN_SPEOP_ARITH1(evabs, gen_op_evabs); 129 + GEN_SPEOP_ARITH1(evabs, tcg_gen_abs_i32); 142 130 GEN_SPEOP_ARITH1(evneg, tcg_gen_neg_i32); 143 131 GEN_SPEOP_ARITH1(evextsb, tcg_gen_ext8s_i32); 144 132 GEN_SPEOP_ARITH1(evextsh, tcg_gen_ext16s_i32);