From 6697d416930a0464bea6ca211a1fdfa8a1e01135 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 25 Jun 2010 00:21:48 -0700 Subject: X86: Fix div2 flag calculation. --- src/arch/x86/isa/microops/regop.isa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3