public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: aarch64: fix -Wunused-but-set-variable warnings
@ 2023-12-08 5:31 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-08 5:31 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c64ec6d0825f39ef9ac6f520d409569e7944b81e
commit c64ec6d0825f39ef9ac6f520d409569e7944b81e
Author: Mike Frysinger <vapier@gentoo.org>
Date: Wed Dec 6 21:07:50 2023 -0700
sim: aarch64: fix -Wunused-but-set-variable warnings
Diff:
---
sim/aarch64/simulator.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sim/aarch64/simulator.c b/sim/aarch64/simulator.c
index d170b8a4aa0..4fc66c9188d 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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-08 5:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08 5:31 [binutils-gdb] sim: aarch64: fix -Wunused-but-set-variable warnings Michael Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).