From: Gabe Black Date: Wed, 3 Oct 2007 05:05:10 +0000 (-0700) Subject: X86: Allow logic instructions to set ECF as well as CF. X-Git-Tag: m5_2.0_beta4~84 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efb309525a098e3f8d5d689670468938eb4ae565;p=gem5.git X86: Allow logic instructions to set ECF as well as CF. --HG-- extra : convert_revision : 6ac20f069c86c23a8d443a7127afd6015166c00d --- diff --git a/src/arch/x86/isa/microops/regop.isa b/src/arch/x86/isa/microops/regop.isa index 40a441b1e..f161e6825 100644 --- a/src/arch/x86/isa/microops/regop.isa +++ b/src/arch/x86/isa/microops/regop.isa @@ -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); '''