VirtualBox

Changeset 81613 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Oct 31, 2019 6:50:08 PM (5 years ago)
Author:
vboxsync
Message:

VMM,SUPDrv,x86.h: Nits.

  • supdrvTscMeasureDeltaOne: No bulldozer Hygon, right, so don't muddle complicated if expression with impossibilities.
  • CPUMMICROARCH: Put the Hygon and Shanghai immediately after the CPU families they are derived from (in the enum).
  • cpumR3CpuIdExplodeFeatures: No K7 Hygon, right, so just flag all Hygons having leaking FxSR when FFXSR is set.
  • cpumR3LoadCpuIdInner: Incorrect indent.
  • getMsrNameHandled: Unnecessary parentheses and space.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm-amd64-x86.h

    r81605 r81613  
    14761476DECLINLINE(bool) ASMIsIntelCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX)
    14771477{
    1478     return uEBX == UINT32_C(0x756e6547)
    1479         && uECX == UINT32_C(0x6c65746e)
    1480         && uEDX == UINT32_C(0x49656e69);
     1478    /* 'GenuineIntel' */
     1479    return uEBX == UINT32_C(0x756e6547)     /* 'Genu' */
     1480        && uEDX == UINT32_C(0x49656e69)     /* 'ineI' */
     1481        && uECX == UINT32_C(0x6c65746e);    /* 'ntel' */
    14811482}
    14821483
     
    15061507DECLINLINE(bool) ASMIsAmdCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX)
    15071508{
    1508     return uEBX == UINT32_C(0x68747541)
    1509         && uECX == UINT32_C(0x444d4163)
    1510         && uEDX == UINT32_C(0x69746e65);
     1509    /* 'AuthenticAMD' */
     1510    return uEBX == UINT32_C(0x68747541)     /* 'Auth' */
     1511        && uEDX == UINT32_C(0x69746e65)     /* 'enti' */
     1512        && uECX == UINT32_C(0x444d4163);    /* 'dAMD' */
    15111513}
    15121514
     
    15361538DECLINLINE(bool) ASMIsViaCentaurCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX)
    15371539{
    1538     return uEBX == UINT32_C(0x746e6543)
    1539         && uECX == UINT32_C(0x736c7561)
    1540         && uEDX == UINT32_C(0x48727561);
     1540    /* 'CentaurHauls' */
     1541    return uEBX == UINT32_C(0x746e6543)     /* 'Cent' */
     1542        && uEDX == UINT32_C(0x48727561)     /* 'aurH' */
     1543        && uECX == UINT32_C(0x736c7561);    /* 'auls' */
    15411544}
    15421545
     
    15661569DECLINLINE(bool) ASMIsShanghaiCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX)
    15671570{
    1568     return uEBX == UINT32_C(0x68532020)
    1569         && uECX == UINT32_C(0x20206961)
    1570         && uEDX == UINT32_C(0x68676e61);
     1571    /* '  Shanghai  ' */
     1572    return uEBX == UINT32_C(0x68532020)     /* '  Sh' */
     1573        && uEDX == UINT32_C(0x68676e61)     /* 'angh' */
     1574        && uECX == UINT32_C(0x20206961);    /* 'ai  ' */
    15711575}
    15721576
     
    15961600DECLINLINE(bool) ASMIsHygonCpuEx(uint32_t uEBX, uint32_t uECX, uint32_t uEDX)
    15971601{
    1598     return uEBX == UINT32_C(0x6f677948)
    1599         && uECX == UINT32_C(0x656e6975)
    1600         && uEDX == UINT32_C(0x6e65476e);
     1602    /* 'HygonGenuine' */
     1603    return uEBX == UINT32_C(0x6f677948)     /* Hygo */
     1604        && uECX == UINT32_C(0x656e6975)     /* uine */
     1605        && uEDX == UINT32_C(0x6e65476e);    /* nGen */
    16011606}
    16021607
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