diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-01-18 10:08:49 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-01-22 11:54:58 -0800 |
commit | 847a6473206607bc6c84f6c537a0fe603ff7aaa6 (patch) | |
tree | 0772370b77db0673865993020d43121a7eca1152 /hw/xen/xen_pt.c | |
parent | 251634f4ce589d17eb0a14e36c65090713eb9e56 (diff) |
target/xtensa: disas/xtensa: fix coverity warnings
Coverity warnings CID 1385146, 1385148 1385149 and 1385150 point that
xtensa_opcode_num_operands and xtensa_format_num_slots may return -1
even when xtensa_opcode_decode and xtensa_format_decode succeed. In that
case unsigned counters used to iterate through operands/slots will not
do the right thing.
Make counters and loop bounds signed to fix the warnings.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'hw/xen/xen_pt.c')
0 files changed, 0 insertions, 0 deletions