- Timestamp:
- Mar 31, 2008 11:01:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r5999 r7644 1018 1018 } 1019 1019 1020 /* 1021 * Set the PAE bit in both feature masks. 1022 * Assumes the caller knows what it's doing! (host must support these) 1023 */ 1024 case CPUMCPUIDFEATURE_PAE: 1025 { 1026 uint32_t ulEdx, ulDummy; 1027 1028 ASMCpuId(1, &ulDummy, &ulDummy, &ulDummy, &ulEdx); 1029 if (!(ulEdx & X86_CPUID_FEATURE_EDX_PAE)) 1030 { 1031 AssertMsgFailed(("ERROR: Can't turn on PAE when the host doesn't support it!!\n")); 1032 return; 1033 } 1034 1035 if (pVM->cpum.s.aGuestCpuIdStd[0].eax >= 1) 1036 pVM->cpum.s.aGuestCpuIdStd[1].edx |= X86_CPUID_FEATURE_EDX_PAE; 1037 if ( pVM->cpum.s.aGuestCpuIdExt[0].eax >= 0x80000001 1038 && pVM->cpum.s.aGuestCpuIdExt[1].edx) 1039 pVM->cpum.s.aGuestCpuIdExt[1].edx |= X86_CPUID_AMD_FEATURE_EDX_PAE; 1040 Log(("CPUMSetGuestCpuIdFeature: Enabled PAE\n")); 1041 break; 1042 } 1043 1020 1044 default: 1021 1045 AssertMsgFailed(("enmFeature=%d\n", enmFeature));
Note:
See TracChangeset
for help on using the changeset viewer.