target/s390x: Fix the accumulation of ccm in op_icm
commit21641ee5a9b31568c990c7fc949eeb9bcd0f6a0f
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 1 Apr 2022 19:36:59 +0000 (1 13:36 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 27 Apr 2022 02:58:43 +0000 (26 19:58 -0700)
tree002db74e221dc0bdc25db07779fc9fc3668171bd
parentb826044fc0c21d90a7fcfcf883cc8a8bf1bd7424
target/s390x: Fix the accumulation of ccm in op_icm

Coverity rightly reports that 0xff << pos can overflow.
This would affect the ICMH instruction.

Fixes: Coverity CID 1487161
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220401193659.332079-1-richard.henderson@linaro.org>
target/s390x/tcg/translate.c