linux-user/ppc: Narrow type of ccr in save_user_regs
commit0798da8df9fd917515c957ae918d6d979cf5f3fb
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 4 Apr 2022 06:49:06 +0000 (4 08:49 +0200)
committerCédric Le Goater <clg@kaod.org>
Mon, 4 Apr 2022 06:49:06 +0000 (4 08:49 +0200)
treed1b7b85ec58e7b624a28f23303afd1c129907fa9
parent7e5157696b97a5431ef8786e01bffe989c05493b
linux-user/ppc: Narrow type of ccr in save_user_regs

Coverity warns that we shift a 32-bit value by N, and then
accumulate it into a 64-bit type (target_ulong on ppc64).

The ccr is always 8 * 4-bit fields, and thus is always a
32-bit quantity; narrow the type to avoid the warning.

Fixes: Coverity CID 1487223
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220401191643.330393-1-richard.henderson@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
linux-user/ppc/signal.c