VirtualBox

Changeset 65030 in vbox for trunk


Ignore:
Timestamp:
Dec 29, 2016 2:28:00 PM (8 years ago)
Author:
vboxsync
Message:

IEM: Fixed BSR instruction.

File:
1 edited

Legend:

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

    r65029 r65030  
    683683{
    684684    /* Note! "undefined" flags: OF, SF, AF, PF, CF. */
    685     /** @todo check what real CPUs does. */
     685    /** @todo check what real CPUs do. */
    686686    if (uSrc)
    687687    {
     
    734734{
    735735    /* Note! "undefined" flags: OF, SF, AF, PF, CF. */
    736     /** @todo check what real CPUs does. */
     736    /** @todo check what real CPUs do. */
    737737    if (uSrc)
    738738    {
     
    741741        if (uSrc & UINT64_C(0xffffffff00000000))
    742742        {
    743             iBit = 64;
     743            iBit = 63;
    744744            u32Src = uSrc >> 32;
    745745        }
    746746        else
    747747        {
    748             iBit = 32;
     748            iBit = 31;
    749749            u32Src = uSrc;
    750750        }
     
    769769            u32Src <<= 2;
    770770        }
    771         if (!(u32Src & UINT32_C(0x10000000)))
     771        if (!(u32Src & UINT32_C(0x80000000)))
    772772        {
    773773            iBit -= 1;
    774             u32Src <<= 1;
    775             Assert(u32Src & RT_BIT_64(63));
     774            Assert(u32Src & RT_BIT(30));
    776775        }
    777776
Note: See TracChangeset for help on using the changeset viewer.

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