summaryrefslogtreecommitdiff
path: root/hw/ppc/spapr_tpm_proxy.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-03-23 17:22:30 +0000
committerPeter Maydell <peter.maydell@linaro.org>2020-03-23 17:22:30 +0000
commit550a04893c2bd4442211b353680b9a6408d94dba (patch)
treef94497b3d10d6ab3c8f2ca83d2a3ec73502b91ae /hw/ppc/spapr_tpm_proxy.c
parent3944d58db3fc5bf131345a21a44013bc13849a12 (diff)
downloadqemu-550a04893c2bd4442211b353680b9a6408d94dba.zip
target/arm: Move computation of index in handle_simd_dupe
Coverity reports a BAD_SHIFT with ctz32(imm5), with imm5 == 0. This is an invalid encoding, but we diagnose that just below by rejecting size > 3. Avoid the warning by sinking the computation of index below the check. Reported-by: Coverity (CID 1421965) Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20200320160622.8040-4-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ppc/spapr_tpm_proxy.c')
0 files changed, 0 insertions, 0 deletions