From: Julian Seward Date: Fri, 5 Nov 2004 20:22:03 +0000 (+0000) Subject: x86 guest: un-break handling of eflags after inc/dec. X-Git-Tag: svn/VALGRIND_3_0_1^2~834 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6cbb527d5f401c36870fcba16f34a4f9c325c12;p=thirdparty%2Fvalgrind.git x86 guest: un-break handling of eflags after inc/dec. git-svn-id: svn://svn.valgrind.org/vex/trunk@500 --- diff --git a/VEX/priv/guest-x86/ghelpers.c b/VEX/priv/guest-x86/ghelpers.c index 3344043252..f7ff720068 100644 --- a/VEX/priv/guest-x86/ghelpers.c +++ b/VEX/priv/guest-x86/ghelpers.c @@ -201,7 +201,7 @@ inline static Int lshift ( Int x, Int n ) Int argL, argR; \ argL = CC_RES - 1; \ argR = 1; \ - cf = CC_AUX & CC_MASK_O; \ + cf = CC_AUX & CC_MASK_C; \ pf = parity_table[(UChar)CC_RES]; \ af = (CC_RES ^ argL ^ argR) & 0x10; \ zf = ((DATA_UTYPE)CC_RES == 0) << 6; \ @@ -219,7 +219,7 @@ inline static Int lshift ( Int x, Int n ) Int argL, argR; \ argL = CC_RES + 1; \ argR = 1; \ - cf = CC_AUX & CC_MASK_O; \ + cf = CC_AUX & CC_MASK_C; \ pf = parity_table[(UChar)CC_RES]; \ af = (CC_RES ^ argL ^ argR) & 0x10; \ zf = ((DATA_UTYPE)CC_RES == 0) << 6; \