diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2010-06-25 00:21:48 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2010-06-25 00:21:48 -0700 |
commit | 6697d416930a0464bea6ca211a1fdfa8a1e01135 (patch) | |
tree | cd08569b433462e417a004527948bb5d895f21c1 /src | |
parent | 0135cdab8da6f60e0cb444e3d512aa4799b2b112 (diff) | |
download | gem5-6697d416930a0464bea6ca211a1fdfa8a1e01135.tar.xz |
X86: Fix div2 flag calculation.
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/isa/microops/regop.isa | 2 |
1 files changed, 1 insertions, 1 deletions
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); |