X86: Allow logic instructions to set ECF as well as CF.

--HG--
extra : convert_revision : 6ac20f069c86c23a8d443a7127afd6015166c00d
This commit is contained in:
Gabe Black 2007-10-02 22:05:10 -07:00
parent 65c247f21f
commit efb309525a

View file

@ -439,10 +439,11 @@ let {{
abstract = True
flag_code = '''
//Don't have genFlags handle the OF or CF bits
uint64_t mask = CFBit | OFBit;
uint64_t mask = CFBit | ECFBit | OFBit;
ccFlagBits = genFlags(ccFlagBits, ext & ~mask, DestReg, psrc1, op2);
//If a logic microop wants to set these, it wants to set them to 0.
ccFlagBits &= ~(CFBit & ext);
ccFlagBits &= ~(ECFBit & ext);
ccFlagBits &= ~(OFBit & ext);
'''