VirtualBox

Changeset 102889 in vbox


Ignore:
Timestamp:
Jan 16, 2024 11:07:08 AM (14 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161111
Message:

VMM/CPUM: enable cmpxchg16b and popcnt on arm hosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r102807 r102889  
    22282228    pVM->cpum.s.HostFeatures               = g_CpumHostFeatures.s;
    22292229    pVM->cpum.s.GuestFeatures.enmCpuVendor = pVM->cpum.s.HostFeatures.enmCpuVendor;
     2230
     2231#elif defined(RT_ARCH_ARM64)
     2232    /** @todo we shouldn't be using the x86/AMD64 CPUMFEATURES for HostFeatures,
     2233     *        but it's too much work to fix that now.  So, instead we just set
     2234     *        the bits we think are important for CPUMR3CpuId...  This must
     2235     *        correspond to what IEM can emulate on ARM64. */
     2236    pVM->cpum.s.HostFeatures.fCmpXchg8b  = true;
     2237    pVM->cpum.s.HostFeatures.fCmpXchg16b = true;
     2238    pVM->cpum.s.HostFeatures.fPopCnt     = true;
    22302239#endif
    22312240
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