aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 21:07:50 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-07 22:31:21 -0700
commitc64ec6d0825f39ef9ac6f520d409569e7944b81e (patch)
treea2b36a3b747251d6046d6a66ee58760e486a0fff
parent3762437eadd40d48f4d594f31a3c11106a5ae3a1 (diff)
downloadfsf-binutils-gdb-c64ec6d0825f39ef9ac6f520d409569e7944b81e.zip
fsf-binutils-gdb-c64ec6d0825f39ef9ac6f520d409569e7944b81e.tar.gz
fsf-binutils-gdb-c64ec6d0825f39ef9ac6f520d409569e7944b81e.tar.bz2
sim: aarch64: fix -Wunused-but-set-variable warnings
-rw-r--r--sim/aarch64/simulator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/aarch64/simulator.c b/sim/aarch64/simulator.c
index d170b8a..4fc66c9 100644
--- a/sim/aarch64/simulator.c
+++ b/sim/aarch64/simulator.c
@@ -10265,8 +10265,7 @@ bfm32 (sim_cpu *cpu, uint32_t r, uint32_t s)
value2 |= value;
TRACE_DECODE (cpu, "emulated at line %d", __LINE__);
- aarch64_set_reg_u64
- (cpu, rd, NO_SP, (aarch64_get_reg_u32 (cpu, rd, NO_SP) & ~mask) | value);
+ aarch64_set_reg_u64 (cpu, rd, NO_SP, value2);
}
/* 64 bit bitfield move, non-affected bits left as is.