crisv10: Always clear the V and C flags on btst.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
fb9fb69231
commit
95475216f2
@ -276,6 +276,8 @@ uint32_t helper_btst(uint32_t t0, uint32_t t1, uint32_t ccs)
|
||||
|
||||
/* Clear the X, N and Z flags. */
|
||||
ccs = ccs & ~(X_FLAG | N_FLAG | Z_FLAG);
|
||||
if (env->pregs[PR_VR] < 32)
|
||||
ccs &= ~(V_FLAG | C_FLAG);
|
||||
/* Set the N and Z flags accordingly. */
|
||||
ccs |= (bset << 3) | (fz << 2);
|
||||
return ccs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user