commit | 012c1f072f7f1611c86a912f0964e45136ea38cc | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Sun Dec 24 05:13:42 2023 -0500 |
committer | Mike Frysinger <vapier@gentoo.org> | Sat Jan 06 23:30:43 2024 -0500 |
tree | 0349c03edfa8d83fe31e8890e762d4d52aae28da | |
parent | 6541385ca26947a6a212e942ec2a87afaa7b9f5c [diff] |
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]