Changeset 52550 in vbox
- Timestamp:
- Sep 1, 2014 11:47:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r52419 r52550 3964 3964 " RAW Extended CPUIDs\n" 3965 3965 " Function eax ebx ecx edx\n"); 3966 bool fSupportsInvariantTsc = false; 3966 3967 for (unsigned i = 0; i < RT_ELEMENTS(pVM->cpum.s.aGuestCpuIdExt); i++) 3967 3968 { … … 3969 3970 ASMCpuIdExSlow(0x80000000 | i, 0, 0, 0, &Host.eax, &Host.ebx, &Host.ecx, &Host.edx); 3970 3971 3972 if ( i == 7 3973 && (Host.edx & X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR)) 3974 { 3975 fSupportsInvariantTsc = true; 3976 } 3971 3977 pHlp->pfnPrintf(pHlp, 3972 3978 "Gst: %08x %08x %08x %08x %08x%s\n" … … 4215 4221 { 4216 4222 uint32_t uEDX = pVM->cpum.s.aGuestCpuIdExt[7].edx; 4217 4223 pHlp->pfnPrintf(pHlp, "Host Invariant-TSC support: %RTbool\n", fSupportsInvariantTsc); 4218 4224 pHlp->pfnPrintf(pHlp, "APM Features: "); 4219 4225 if (uEDX & RT_BIT(0)) pHlp->pfnPrintf(pHlp, " TS"); … … 4224 4230 if (uEDX & RT_BIT(5)) pHlp->pfnPrintf(pHlp, " STC"); 4225 4231 for (unsigned iBit = 6; iBit < 32; iBit++) 4226 if (uEDX & RT_BIT(iBit)) 4232 { 4233 if (uEDX & X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR) 4234 pHlp->pfnPrintf(pHlp, " TSCINVARIANT"); 4235 else if (uEDX & RT_BIT(iBit)) 4227 4236 pHlp->pfnPrintf(pHlp, " %d", iBit); 4237 } 4228 4238 pHlp->pfnPrintf(pHlp, "\n"); 4229 4239 }
Note:
See TracChangeset
for help on using the changeset viewer.