Skip to content
Snippets Groups Projects
Commit 0798da8d authored by Richard Henderson's avatar Richard Henderson Committed by Cédric Le Goater
Browse files

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: default avatarRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: default avatarCédric Le Goater <clg@kaod.org>
Message-Id: <20220401191643.330393-1-richard.henderson@linaro.org>
Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
parent 7e515769
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment