summaryrefslogtreecommitdiffstats
path: root/hw/i2c/aspeed_i2c.c
diff options
context:
space:
mode:
authorDaniel Henrique Barboza2022-06-02 21:10:48 +0200
committerDaniel Henrique Barboza2022-06-20 13:38:58 +0200
commit5980167e07bb691a36ef002a00f9e8b993f0800e (patch)
tree47e7b63c802387b0a9d3a24967478a9993ba0105 /hw/i2c/aspeed_i2c.c
parenttarget/ppc: avoid int32 multiply overflow in int_helper.c (diff)
downloadqemu-5980167e07bb691a36ef002a00f9e8b993f0800e.tar.gz
qemu-5980167e07bb691a36ef002a00f9e8b993f0800e.tar.xz
qemu-5980167e07bb691a36ef002a00f9e8b993f0800e.zip
target/ppc: fix unreachable code in fpu_helper.c
Commit c29018cc7395 added an env->fpscr OR operation using a ternary that checks if 'error' is not zero: env->fpscr |= error ? FP_FEX : 0; However, in the current body of do_fpscr_check_status(), 'error' is granted to be always non-zero at that point. The result is that Coverity is less than pleased: Control flow issues (DEADCODE) Execution cannot reach the expression "0ULL" inside this statement: "env->fpscr |= (error ? 1073...". Remove the ternary and always make env->fpscr |= FP_FEX. Cc: Lucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br> Cc: Richard Henderson <richard.henderson@linaro.org> Fixes: Coverity CID 1489442 Fixes: c29018cc7395 ("target/ppc: Implemented xvf*ger*") Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Lucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br> Message-Id: <20220602191048.137511-1-danielhb413@gmail.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'hw/i2c/aspeed_i2c.c')
0 files changed, 0 insertions, 0 deletions