X86: Calculate flags based on the actual result.

This commit is contained in:
Gabe Black 2009-02-01 00:08:16 -08:00
parent 7720968949
commit 483c3e96b7

View file

@ -67,6 +67,9 @@ namespace X86ISA
bool subtract) const
{
DPRINTF(X86, "flagMask = %#x\n", flagMask);
if (_destRegIdx[0] & (1 << 6)) {
_dest >>= 8;
}
uint64_t flags = oldFlags & ~flagMask;
if(flagMask & (ECFBit | CFBit))
{