aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 20:07:06 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-07 21:41:27 -0700
commita886474a62e836a0997f9aba59b957e2adc8926e (patch)
treeebb20bd7c7849d4f4f996fa4d430e748328a91db
parent4125d6473842ec85797bde679421f980103f45c5 (diff)
downloadfsf-binutils-gdb-a886474a62e836a0997f9aba59b957e2adc8926e.zip
fsf-binutils-gdb-a886474a62e836a0997f9aba59b957e2adc8926e.tar.gz
fsf-binutils-gdb-a886474a62e836a0997f9aba59b957e2adc8926e.tar.bz2
sim: d10v: fix -Wunused-but-set-variable warnings
-rw-r--r--sim/d10v/interp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index 46d7bf2..d6a9461 100644
--- a/sim/d10v/interp.c
+++ b/sim/d10v/interp.c
@@ -88,13 +88,13 @@ lookup_hash (SIM_DESC sd, SIM_CPU *cpu, uint32_t ins, int size)
INLINE static void
get_operands (struct simops *s, uint32_t ins)
{
- int i, shift, bits, flags;
+ int i, shift, bits;
uint32_t mask;
for (i=0; i < s->numops; i++)
{
shift = s->operands[3*i];
bits = s->operands[3*i+1];
- flags = s->operands[3*i+2];
+ /* flags = s->operands[3*i+2]; */
mask = 0x7FFFFFFF >> (31 - bits);
OP[i] = (ins >> shift) & mask;
}