X86: Fix carry calculation for subtraction based microops.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 27 Jul 2007 05:06:30 +0000 (22:06 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 27 Jul 2007 05:06:30 +0000 (22:06 -0700)
commit57428b8b0bc277f45dfcc415677a116c0c0673a6
treebadf1049524458d34947921bfaa3a77b8a417079
parent749ed15b606d0d6d5f27277a0b7d456aa56a6ac5
X86: Fix carry calculation for subtraction based microops.
The carry flag should be calculated using the -complement- of the second operand, not it's negation. The carry in which is part of computing the 2's complement may induce a carry, but if you've already caused the carry before you get the carry computing logic involved, it will miss it.

--HG--
extra : convert_revision : 318cf86929664fc52ed9e023606a9e892eba635c
src/arch/x86/isa/microops/regop.isa