mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
tcg: Remove TCGV_EQUAL*
When we used structures for TCGv_*, we needed a macro in order to perform a comparison. Now that we use pointers, this is just clutter. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
dc41aa7d34
commit
11f4e8f8bf
6 changed files with 11 additions and 17 deletions
|
@ -902,7 +902,7 @@ static inline void gen_op_arith_add(DisasContext *ctx, TCGv ret, TCGv arg1,
|
|||
gen_set_Rc0(ctx, t0);
|
||||
}
|
||||
|
||||
if (!TCGV_EQUAL(t0, ret)) {
|
||||
if (t0 != ret) {
|
||||
tcg_gen_mov_tl(ret, t0);
|
||||
tcg_temp_free(t0);
|
||||
}
|
||||
|
@ -1438,7 +1438,7 @@ static inline void gen_op_arith_subf(DisasContext *ctx, TCGv ret, TCGv arg1,
|
|||
gen_set_Rc0(ctx, t0);
|
||||
}
|
||||
|
||||
if (!TCGV_EQUAL(t0, ret)) {
|
||||
if (t0 != ret) {
|
||||
tcg_gen_mov_tl(ret, t0);
|
||||
tcg_temp_free(t0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue