diff options
author | Stefan Weil <sw@weilnetz.de> | 2015-03-21 14:44:58 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-04-04 09:45:59 +0300 |
commit | 7b4b0b5795e934a9b7efb916af86715b68555be9 (patch) | |
tree | 5e2aa5954537eff04e47ab4f486e7dc6beb2e49f | |
parent | 9c04146ad4696b20c440bfbb4a6ab27ea254e7ca (diff) | |
download | qemu-7b4b0b5795e934a9b7efb916af86715b68555be9.zip qemu-7b4b0b5795e934a9b7efb916af86715b68555be9.tar.gz qemu-7b4b0b5795e934a9b7efb916af86715b68555be9.tar.bz2 |
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 <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r-- | target-tricore/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-tricore/op_helper.c b/target-tricore/op_helper.c index 220ec4a..9907e07 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}; */ |