Changeset 16102 in vbox for trunk/src/VBox
- Timestamp:
- Jan 20, 2009 9:42:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp
r15439 r16102 168 168 } 169 169 170 #if HC_ARCH_BITS == 32 && defined(VBOX_ ENABLE_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)170 #if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL) 171 171 if (CPUMIsGuestInLongModeEx(pCtx)) 172 172 { 173 173 /* Restore the state on entry as we need to be in 64 bits mode to access the full state. */ 174 174 pVCpu->cpum.s.fUseFlags |= CPUM_SYNC_FPU_STATE; 175 RTLogPrintf("setting CPUM_SYNC_FPU_STATE\n"); 175 176 } 176 177 else … … 258 259 AssertReturn((pVCpu->cpum.s.fUseFlags & CPUM_USED_FPU), VINF_SUCCESS); 259 260 260 #if HC_ARCH_BITS == 32 && defined(VBOX_ ENABLE_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)261 #if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL) 261 262 if (CPUMIsGuestInLongModeEx(pCtx)) 262 263 { 264 if (!(pVCpu->cpum.s.fUseFlags & CPUM_SYNC_FPU_STATE)) 265 RTLogPrintf("CPUMR0SaveGuestFPU: CPUM_SYNC_FPU_STATE is clear...\n"); 266 else RTLogPrintf("CPUMR0SaveGuestFPU: CPUM_SYNC_FPU_STATE is still set\n"); 263 267 if (!(pVCpu->cpum.s.fUseFlags & CPUM_SYNC_FPU_STATE)) 264 268 HWACCMR0SaveFPUState(pVM, pVCpu, pCtx); 269 265 270 266 271 cpumR0RestoreHostFPUState(&pVCpu->cpum.s); … … 321 326 322 327 /* Save the guest's debug state. The caller is responsible for DR7. */ 323 #if HC_ARCH_BITS == 32 && defined(VBOX_ ENABLE_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)328 #if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL) 324 329 if (CPUMIsGuestInLongModeEx(pCtx)) 325 330 { … … 397 402 398 403 /* Activate the guest state DR0-3; DR7 is left to the caller. */ 399 #if HC_ARCH_BITS == 32 && defined(VBOX_ ENABLE_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)404 #if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL) 400 405 if (CPUMIsGuestInLongModeEx(pCtx)) 401 406 {
Note:
See TracChangeset
for help on using the changeset viewer.