diff options
| author | Richard Henderson | 2020-03-23 18:22:30 +0100 |
|---|---|---|
| committer | Peter Maydell | 2020-03-23 18:22:30 +0100 |
| commit | 550a04893c2bd4442211b353680b9a6408d94dba (patch) | |
| tree | f94497b3d10d6ab3c8f2ca83d2a3ec73502b91ae /include/exec | |
| parent | target/arm: Assert immh != 0 in disas_simd_shift_imm (diff) | |
| download | qemu-550a04893c2bd4442211b353680b9a6408d94dba.tar.gz qemu-550a04893c2bd4442211b353680b9a6408d94dba.tar.xz qemu-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 'include/exec')
0 files changed, 0 insertions, 0 deletions
