Changeset 12214 in vbox
- Timestamp:
- Sep 8, 2008 10:32:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsGeneral.cpp
r12213 r12214 219 219 uint32_t u32VendorEBX, u32VendorECX, u32VendorEDX, u32AMDFeatureEDX, u32AMDFeatureECX; 220 220 221 ASMCpuId (0, &u32Dummy, &u32VendorEBX, &u32VendorECX, &u32VendorEDX);222 ASMCpuId (1, &u32Dummy, &u32Dummy, &u32FeaturesECX, &u32FeaturesEDX);221 ASMCpuId (0, &u32Dummy, &u32VendorEBX, &u32VendorECX, &u32VendorEDX); 222 ASMCpuId (1, &u32Dummy, &u32Dummy, &u32FeaturesECX, &u32FeaturesEDX); 223 223 /* Query AMD features. */ 224 ASMCpuId (0x80000001, &u32Dummy, &u32Dummy, &u32AMDFeatureECX, &u32AMDFeatureEDX);224 ASMCpuId (0x80000001, &u32Dummy, &u32Dummy, &u32AMDFeatureECX, &u32AMDFeatureEDX); 225 225 226 226 fPAESupported = !!(u32FeaturesEDX & X86_CPUID_FEATURE_EDX_PAE); … … 235 235 && (u32FeaturesEDX & X86_CPUID_FEATURE_EDX_FXSR) 236 236 ) 237 {238 237 fVTxAMDVSupported = true; 239 }240 238 } 241 239 else … … 249 247 && (u32FeaturesEDX & X86_CPUID_FEATURE_EDX_FXSR) 250 248 ) 251 {252 249 fVTxAMDVSupported = true; 253 }254 250 } 255 251 } … … 258 254 fVTxAMDVSupported = false; 259 255 #endif 260 mCbVirt->setEnabled (fVTxAMDVSupported);256 mCbVirt->setEnabled (fVTxAMDVSupported); 261 257 262 258 /* VT-x/AMD-V */ … … 266 262 267 263 /* PAE/NX */ 268 mCbPae->setEnabled (fPAESupported);264 mCbPae->setEnabled (fPAESupported); 269 265 mCbPae->setChecked (aMachine.GetPAEEnabled()); 270 266
Note:
See TracChangeset
for help on using the changeset viewer.