VirtualBox

Changeset 42492 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Aug 1, 2012 7:49:41 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79650
Message:

VMM/VMMR3/TM: Fixed-rate TSC detection for VIA Cpus.

File:
1 edited

Legend:

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

    r41965 r42492  
    806806                ||  (uFamily == 0x06 /*P2/P3*/  && uModel >= 0x0e))
    807807                return true;
     808        }
     809        else if (CPUMGetHostCpuVendor(pVM) == CPUMCPUVENDOR_VIA)
     810        {
     811            /*
     812             * CentaurHauls - Check the model, family and stepping.
     813             *
     814             * This only checks for VIA CPU models Nano X2, Nano X3,
     815             * Eden X2 and QuadCore.
     816             */
     817            ASMCpuId(0, &uEAX, &uEBX, &uECX, &uEDX);
     818            unsigned uStepping = (uEAX & 0x0f);
     819            unsigned uModel    = (uEAX >> 4) & 0x0f;
     820            unsigned uFamily   = (uEAX >> 8) & 0x0f;
     821            if (   uFamily   == 0x06
     822                && uModel    == 0x0f
     823                && uStepping >= 0x0c
     824                && uStepping <= 0x0f)
     825            {
     826                return true;
     827            }
    808828        }
    809829    }
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