aboutsummaryrefslogtreecommitdiff
path: root/target/avr
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-02-24 18:11:32 -1000
committerRichard Henderson <richard.henderson@linaro.org>2023-03-05 13:44:07 -0800
commit365a0c5439aefaa54fad0fc3f83b6918afa7ee3f (patch)
tree6c60e9a84fb69d2c7215de6f969cb6444bf05cdf /target/avr
parentc1110449334c05cb7fc24ecca76de5620d1f596f (diff)
downloadqemu-365a0c5439aefaa54fad0fc3f83b6918afa7ee3f.zip
qemu-365a0c5439aefaa54fad0fc3f83b6918afa7ee3f.tar.gz
qemu-365a0c5439aefaa54fad0fc3f83b6918afa7ee3f.tar.bz2
target/avr: Drop R from trans_COM
This variable is not used, only allocated and freed. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/avr')
-rw-r--r--target/avr/translate.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/target/avr/translate.c b/target/avr/translate.c
index e7f0e2b..4f8112c 100644
--- a/target/avr/translate.c
+++ b/target/avr/translate.c
@@ -670,7 +670,6 @@ static bool trans_EOR(DisasContext *ctx, arg_EOR *a)
static bool trans_COM(DisasContext *ctx, arg_COM *a)
{
TCGv Rd = cpu_r[a->rd];
- TCGv R = tcg_temp_new_i32();
tcg_gen_xori_tl(Rd, Rd, 0xff);
@@ -678,9 +677,6 @@ static bool trans_COM(DisasContext *ctx, arg_COM *a)
tcg_gen_movi_tl(cpu_Cf, 1); /* Cf = 1 */
tcg_gen_movi_tl(cpu_Vf, 0); /* Vf = 0 */
gen_ZNSf(Rd);
-
- tcg_temp_free_i32(R);
-
return true;
}