From: Gabe Black Date: Fri, 25 Jun 2010 07:21:48 +0000 (-0700) Subject: X86: Fix div2 flag calculation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6697d416930a0464bea6ca211a1fdfa8a1e01135;p=gem5.git X86: Fix div2 flag calculation. --- diff --git a/src/arch/x86/isa/microops/regop.isa b/src/arch/x86/isa/microops/regop.isa index f9e00b4e3..e0270cb81 100644 --- a/src/arch/x86/isa/microops/regop.isa +++ b/src/arch/x86/isa/microops/regop.isa @@ -636,7 +636,7 @@ let {{ Quotient = quotient; ''' flag_code = ''' - if (DestReg == 0) + if (remaining == 0) ccFlagBits = ccFlagBits | (ext & EZFBit); else ccFlagBits = ccFlagBits & ~(ext & EZFBit);