VirtualBox

Changeset 54714 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Mar 11, 2015 2:00:23 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98878
Message:

PATM,CPUM: CPUID patch update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp

    r54674 r54714  
    8080{
    8181    uint32_t uLeaf;  /**< Leaf to check. */
    82     uint32_t ecx;    /**< which bits in ecx to unify between CPUs. */
    83     uint32_t edx;    /**< which bits in edx to unify between CPUs. */
     82    uint32_t uEcx;   /**< which bits in ecx to unify between CPUs. */
     83    uint32_t uEdx;   /**< which bits in edx to unify between CPUs. */
    8484}
    8585const g_aCpuidUnifyBits[] =
     
    170170        ASMCpuIdExSlow(uLeaf, 0, 0, 0, &eax, &ebx, &ecx, &edx);
    171171
    172         ASMAtomicAndU32(&pLegacyLeaf->ecx, ecx | ~g_aCpuidUnifyBits[i].ecx);
    173         ASMAtomicAndU32(&pLegacyLeaf->edx, edx | ~g_aCpuidUnifyBits[i].edx);
     172        ASMAtomicAndU32(&pLegacyLeaf->uEcx, ecx | ~g_aCpuidUnifyBits[i].uEcx);
     173        ASMAtomicAndU32(&pLegacyLeaf->uEdx, edx | ~g_aCpuidUnifyBits[i].uEdx);
    174174    }
    175175}
     
    300300                    continue;
    301301
    302                 pLeaf->uEcx = pLegacyLeaf->ecx;
    303                 pLeaf->uEdx = pLegacyLeaf->edx;
     302                pLeaf->uEcx = pLegacyLeaf->uEcx;
     303                pLeaf->uEdx = pLegacyLeaf->uEdx;
    304304            }
    305305        }
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