aboutsummaryrefslogtreecommitdiff
path: root/target-tricore/op_helper.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-03-21 14:44:58 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2015-04-04 09:45:59 +0300
commit7b4b0b5795e934a9b7efb916af86715b68555be9 (patch)
tree5e2aa5954537eff04e47ab4f486e7dc6beb2e49f /target-tricore/op_helper.c
parent9c04146ad4696b20c440bfbb4a6ab27ea254e7ca (diff)
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>
Diffstat (limited to 'target-tricore/op_helper.c')
-rw-r--r--target-tricore/op_helper.c2
1 files changed, 1 insertions, 1 deletions
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}; */