fix LE condition test in armv3 interpreter

This commit is contained in:
Anthony Pesch 2017-05-09 09:58:45 -04:00
parent 4b8f969307
commit 708a0044d3
1 changed files with 1 additions and 2 deletions

View File

@ -70,8 +70,7 @@ static inline int armv3_fallback_cond_check(struct armv3_context *ctx,
return Z_CLEAR(ctx->r[CPSR]) &&
N_SET(ctx->r[CPSR]) == V_SET(ctx->r[CPSR]);
case COND_LE:
return Z_CLEAR(ctx->r[CPSR]) ||
N_SET(ctx->r[CPSR]) != V_SET(ctx->r[CPSR]);
return Z_SET(ctx->r[CPSR]) || N_SET(ctx->r[CPSR]) != V_SET(ctx->r[CPSR]);
case COND_AL:
return 1;
case COND_NV: