aboutsummaryrefslogtreecommitdiff
path: root/sim/cris/decodev10.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-24 05:13:42 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-06 23:30:43 -0500
commit012c1f072f7f1611c86a912f0964e45136ea38cc (patch)
tree0349c03edfa8d83fe31e8890e762d4d52aae28da /sim/cris/decodev10.c
parent6541385ca26947a6a212e942ec2a87afaa7b9f5c (diff)
downloadgdb-012c1f072f7f1611c86a912f0964e45136ea38cc.zip
gdb-012c1f072f7f1611c86a912f0964e45136ea38cc.tar.gz
gdb-012c1f072f7f1611c86a912f0964e45136ea38cc.tar.bz2
sim: cris: add error fallbacks when decoding condition & swap codes
The condition & swap code decoder only checks known bits and sets based on that. If the variable is out of range, it ends up returning uninitialized data. Turn that case into a hard error. This fixes build warnings like: sim/cris/semcrisv10f-switch.c:13115:11: error: variable 'tmp_condres' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
Diffstat (limited to 'sim/cris/decodev10.c')
0 files changed, 0 insertions, 0 deletions