From: Stefan Weil Date: Sat, 21 Mar 2015 13:44:58 +0000 (+0100) Subject: target-tricore: Fix check which was always false X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7b4b0b5795e934a9b7efb916af86715b68555be9;p=qemu.git target-tricore: Fix check which was always false With a mask value of 0x00400000, the result will never be 1. This fixes a Coverity warning. Signed-off-by: Stefan Weil Signed-off-by: Michael Tokarev --- diff --git a/target-tricore/op_helper.c b/target-tricore/op_helper.c index 220ec4a3c1..9907e07e22 100644 --- a/target-tricore/op_helper.c +++ b/target-tricore/op_helper.c @@ -2573,7 +2573,7 @@ void helper_rslcx(CPUTriCoreState *env) /* CSU trap */ } /* if (PCXI.UL == 1) then trap(CTYP); */ - if ((env->PCXI & MASK_PCXI_UL) == 1) { + if ((env->PCXI & MASK_PCXI_UL) != 0) { /* CTYP trap */ } /* EA = {PCXI.PCXS, 6'b0, PCXI.PCXO, 6'b0}; */