summaryrefslogtreecommitdiffstats
path: root/hw/i386/intel_iommu_internal.h
diff options
context:
space:
mode:
authorMax Filippov2018-01-18 19:08:49 +0100
committerMax Filippov2018-01-22 20:54:58 +0100
commit847a6473206607bc6c84f6c537a0fe603ff7aaa6 (patch)
tree0772370b77db0673865993020d43121a7eca1152 /hw/i386/intel_iommu_internal.h
parenttarget/xtensa: add sample_controller core (diff)
downloadqemu-847a6473206607bc6c84f6c537a0fe603ff7aaa6.tar.gz
qemu-847a6473206607bc6c84f6c537a0fe603ff7aaa6.tar.xz
qemu-847a6473206607bc6c84f6c537a0fe603ff7aaa6.zip
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/i386/intel_iommu_internal.h')
0 files changed, 0 insertions, 0 deletions