X86: Allow logic instructions to set ECF as well as CF.
--HG-- extra : convert_revision : 6ac20f069c86c23a8d443a7127afd6015166c00d
This commit is contained in:
parent
65c247f21f
commit
efb309525a
|
@ -439,10 +439,11 @@ let {{
|
||||||
abstract = True
|
abstract = True
|
||||||
flag_code = '''
|
flag_code = '''
|
||||||
//Don't have genFlags handle the OF or CF bits
|
//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);
|
ccFlagBits = genFlags(ccFlagBits, ext & ~mask, DestReg, psrc1, op2);
|
||||||
//If a logic microop wants to set these, it wants to set them to 0.
|
//If a logic microop wants to set these, it wants to set them to 0.
|
||||||
ccFlagBits &= ~(CFBit & ext);
|
ccFlagBits &= ~(CFBit & ext);
|
||||||
|
ccFlagBits &= ~(ECFBit & ext);
|
||||||
ccFlagBits &= ~(OFBit & ext);
|
ccFlagBits &= ~(OFBit & ext);
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue