aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target-arm/op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-arm/op.c b/target-arm/op.c
index dc1c7341e5..813c285b56 100644
--- a/target-arm/op.c
+++ b/target-arm/op.c
@@ -190,10 +190,10 @@ void OPPROTO op_ ## sbc ## l_T0_T1_cc(void) \
src1 = T0; \
if (!env->CF) { \
T0 = T0 - T1 - 1; \
- env->CF = src1 >= T1; \
+ env->CF = src1 > T1; \
} else { \
T0 = T0 - T1; \
- env->CF = src1 > T1; \
+ env->CF = src1 >= T1; \
} \
env->VF = (src1 ^ T1) & (src1 ^ T0); \
env->NZF = T0; \