X86: Fix div2 flag calculation.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 25 Jun 2010 07:21:48 +0000 (00:21 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 25 Jun 2010 07:21:48 +0000 (00:21 -0700)
src/arch/x86/isa/microops/regop.isa

index f9e00b4e3efa64ffb4956ce2975b66411f99525d..e0270cb8183e4b7f60b13708f4b428762fa9e163 100644 (file)
@@ -636,7 +636,7 @@ let {{
             Quotient = quotient;
         '''
         flag_code = '''
-            if (DestReg == 0)
+            if (remaining == 0)
                 ccFlagBits = ccFlagBits | (ext & EZFBit);
             else
                 ccFlagBits = ccFlagBits & ~(ext & EZFBit);