Commit 7b4b0b57 authored by Stefan Weil's avatar Stefan Weil Committed by Michael Tokarev
Browse files

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: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent 9c04146a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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}; */