Commit 78573df6b28bf1419aeb98a8951bde30a0030fba

Authored by bellard
1 parent 9f0777ed

SBCS fix (Paul Brook)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1264 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-arm/op.c
@@ -190,10 +190,10 @@ void OPPROTO op_ ## sbc ## l_T0_T1_cc(void) \ @@ -190,10 +190,10 @@ void OPPROTO op_ ## sbc ## l_T0_T1_cc(void) \
190 src1 = T0; \ 190 src1 = T0; \
191 if (!env->CF) { \ 191 if (!env->CF) { \
192 T0 = T0 - T1 - 1; \ 192 T0 = T0 - T1 - 1; \
193 - env->CF = src1 >= T1; \ 193 + env->CF = src1 > T1; \
194 } else { \ 194 } else { \
195 T0 = T0 - T1; \ 195 T0 = T0 - T1; \
196 - env->CF = src1 > T1; \ 196 + env->CF = src1 >= T1; \
197 } \ 197 } \
198 env->VF = (src1 ^ T1) & (src1 ^ T0); \ 198 env->VF = (src1 ^ T1) & (src1 ^ T0); \
199 env->NZF = T0; \ 199 env->NZF = T0; \