Changeset 464 in vbox for trunk/src/VBox
- Timestamp:
- Jan 31, 2007 2:58:15 PM (18 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/CPUM.cpp
r186 r464 125 125 Log(("The CPU doesn't support FXSAVE/FXRSTOR!\n")); 126 126 /* No FXSAVE implies no SSE */ 127 pVM->cpum.s.CR4. Mask= X86_CR4_PVI | X86_CR4_VME;128 pVM->cpum.s.CR4.O SFSXR= 0;127 pVM->cpum.s.CR4.AndMask = X86_CR4_PVI | X86_CR4_VME; 128 pVM->cpum.s.CR4.OrMask = 0; 129 129 } 130 130 else 131 131 { 132 pVM->cpum.s.CR4. Mask= X86_CR4_OSXMMEEXCPT | X86_CR4_PVI | X86_CR4_VME;133 pVM->cpum.s.CR4.O SFSXR= X86_CR4_OSFSXR;132 pVM->cpum.s.CR4.AndMask = X86_CR4_OSXMMEEXCPT | X86_CR4_PVI | X86_CR4_VME; 133 pVM->cpum.s.CR4.OrMask = X86_CR4_OSFSXR; 134 134 } 135 135 -
trunk/src/VBox/VMM/CPUMInternal.h
r140 r464 317 317 struct 318 318 { 319 uint32_t Mask;320 uint32_t O SFSXR;319 uint32_t AndMask; 320 uint32_t OrMask; 321 321 } CR4; 322 322 -
trunk/src/VBox/VMM/CPUMInternal.mac
r19 r464 377 377 .CPUFeatures.ecx resd 1 378 378 ; CR4 masks 379 .CR4. Maskresd 1380 .CR4.O SFSXRresd 1379 .CR4.AndMask resd 1 380 .CR4.OrMask resd 1 381 381 ; entered rawmode? 382 382 .fRawEntered resb 1 -
trunk/src/VBox/VMM/VMMSwitcher/AMD64ToPAE.asm
r414 r464 230 230 231 231 ; 232 ; CR4. Mask and CR4.OSFSXRare set in CPUMR3Init based on the presence of232 ; CR4.AndMask and CR4.OrMask are set in CPUMR3Init based on the presence of 233 233 ; FXSAVE support on the host CPU 234 234 ; 235 and ecx, [rdx + CPUM.CR4. Mask]235 and ecx, [rdx + CPUM.CR4.AndMask] 236 236 or eax, ecx 237 or eax, [rdx + CPUM.CR4.O SFSXR]237 or eax, [rdx + CPUM.CR4.OrMask] 238 238 mov cr4, rax 239 239 DEBUG_CHAR('c') ; trashes esi -
trunk/src/VBox/VMM/VMMSwitcher/PAEand32Bit.mac
r19 r464 193 193 194 194 ; 195 ; CR4. Mask and CR4.OSFSXRare set in CPUMR3Init based on the presence of195 ; CR4.AndMask and CR4.OrMask are set in CPUMR3Init based on the presence of 196 196 ; FXSAVE support on the host CPU 197 197 ; 198 and ecx, [edx + CPUM.CR4. Mask]198 and ecx, [edx + CPUM.CR4.AndMask] 199 199 or eax, ecx 200 or eax, [edx + CPUM.CR4.O SFSXR]200 or eax, [edx + CPUM.CR4.OrMask] 201 201 mov cr4, eax 202 202
Note:
See TracChangeset
for help on using the changeset viewer.