X86: Calculate flags based on the actual result.
This commit is contained in:
parent
7720968949
commit
483c3e96b7
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue