diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2017-11-02 12:47:37 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2017-12-29 12:43:39 -0800 |
commit | f764718d0cb30af9f1f8e1d6a33622cc05ca4155 (patch) | |
tree | a762fa01f136307406a2d4522d8076fea1b68696 /target/sh4 | |
parent | 1f5940e4642f4a2c64bcba724eaff3c28ae38c54 (diff) | |
download | qemu-f764718d0cb30af9f1f8e1d6a33622cc05ca4155.zip qemu-f764718d0cb30af9f1f8e1d6a33622cc05ca4155.tar.gz qemu-f764718d0cb30af9f1f8e1d6a33622cc05ca4155.tar.bz2 |
tcg: Remove TCGV_UNUSED* and TCGV_IS_UNUSED*
These are now trivial sets and tests against NULL. Unwrap.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/sh4')
-rw-r--r-- | target/sh4/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 038663c..012156b 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -1940,7 +1940,7 @@ static int decode_gusa(DisasContext *ctx, CPUSH4State *env, int *pmax_insns) op_dst = op_src = op_opc = -1; mt_dst = -1; st_src = st_mop = -1; - TCGV_UNUSED(op_arg); + op_arg = NULL; i = 0; #define NEXT_INSN \ @@ -2228,7 +2228,7 @@ static int decode_gusa(DisasContext *ctx, CPUSH4State *env, int *pmax_insns) } /* If op_src is not a valid register, then op_arg was a constant. */ - if (op_src < 0 && !TCGV_IS_UNUSED(op_arg)) { + if (op_src < 0 && op_arg) { tcg_temp_free_i32(op_arg); } |