From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yagdz-0005KT-0X for qemu-devel@nongnu.org; Wed, 25 Mar 2015 04:26:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yagdu-0001wr-VN for qemu-devel@nongnu.org; Wed, 25 Mar 2015 04:26:30 -0400 Message-ID: <5512712C.5000206@mail.uni-paderborn.de> Date: Wed, 25 Mar 2015 09:26:20 +0100 From: Bastian Koppelmann MIME-Version: 1.0 References: <1426945498-29777-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1426945498-29777-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-tricore: Fix check which was always false List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , QEMU Trivial Cc: mjt@tls.msk.ru, QEMU Developer Hi mjt, On 03/21/2015 02:44 PM, Stefan Weil wrote: > With a mask value of 0x00400000, the result will never be 1. > This fixes a Coverity warning. > > Signed-off-by: Stefan Weil > --- > target-tricore/op_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/target-tricore/op_helper.c b/target-tricore/op_helper.c > index 0e7b4e8..b7d18b2 100644 > --- a/target-tricore/op_helper.c > +++ b/target-tricore/op_helper.c > @@ -2593,7 +2593,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}; */ are you picking this one up? It looks good to me. Cheers, Bastian