VirtualBox

Changeset 65384 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 20, 2017 10:05:18 AM (8 years ago)
Author:
vboxsync
Message:

Validation Kit: added isHostCpuP4()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r65372 r65384  
    29062906        return sCpuDesc.startswith("VIA") or sCpuDesc == 'CentaurHauls';
    29072907
     2908    def isHostCpuP4(self, fQuiet = False):
     2909        """
     2910        Checks if the host CPU is a Pentium 4 / Pentium D.
     2911
     2912        Returns True / False.
     2913        """
     2914        if not self.isHostCpuIntel():
     2915            return False;
     2916
     2917        (uFamilyModel, _, _, _) = self.oVBox.host.getProcessorCPUIDLeaf(0, 0x1, 0);
     2918        return ((uFamilyModel >> 8) & 0xf) == 0xf;
     2919
    29082920    def hasRawModeSupport(self, fQuiet = False):
    29092921        """
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