From c64ec6d0825f39ef9ac6f520d409569e7944b81e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 6 Dec 2023 21:07:50 -0700 Subject: sim: aarch64: fix -Wunused-but-set-variable warnings --- sim/aarch64/simulator.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sim') 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. -- cgit v1.1