VirtualBox

Changeset 62411 in vbox


Ignore:
Timestamp:
Jul 21, 2016 8:48:14 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108961
Message:

iemAImpl_mul_u64: Implemented flag behavior to match that of Intel Skylake 6700K.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllAImplC.cpp

    r62408 r62411  
    11411141    *pu64RAX = Result.s.Lo;
    11421142    *pu64RDX = Result.s.Hi;
    1143     /** @todo research the undefined MUL flags. */
     1143
     1144    /* MUL EFLAGS according to Skylake (similar to IMUL). */
     1145    *pfEFlags &= ~(X86_EFL_SF | X86_EFL_CF | X86_EFL_OF | X86_EFL_AF | X86_EFL_ZF | X86_EFL_PF);
     1146    if (Result.s.Lo & RT_BIT_64(63))
     1147        *pfEFlags |= X86_EFL_SF;
     1148    *pfEFlags |= g_afParity[Result.s.Lo & 0xff]; /* (Skylake behaviour) */
     1149    if (Result.s.Hi != 0)
     1150        *pfEFlags |= X86_EFL_CF | X86_EFL_OF;
    11441151    return 0;
    11451152}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette