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>
This commit is contained in:
parent
9c04146ad4
commit
7b4b0b5795
@ -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}; */
|
||||
|
Loading…
Reference in New Issue
Block a user