Changeset 14900 in vbox for trunk/src/VBox/VMM/VMMSwitcher
- Timestamp:
- Dec 2, 2008 1:30:52 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40245
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMSwitcher/LegacyandAMD64.mac
r14785 r14900 430 430 lss esp, [edx + CPUMCPU.Host.esp] 431 431 432 ; Restore FPU if guest has used it.433 ; Using fxrstor should ensure that we're not causing unwanted exception on the host.434 mov esi, [edx + CPUMCPU.fUseFlags] ; esi == use flags.435 test esi, CPUM_USED_FPU436 jz near gth_fpu_no437 mov ecx, cr0438 and ecx, ~(X86_CR0_TS | X86_CR0_EM)439 mov cr0, ecx440 441 fxsave [edx + CPUMCPU.Guest.fpu]442 fxrstor [edx + CPUMCPU.Host.fpu]443 jmp near gth_fpu_no444 445 ALIGNCODE(16)446 gth_fpu_no:447 448 432 ; Control registers. 449 ; Would've liked to have these higher up in case of crashes, but450 ; the fpu stuff must be done before we restore cr0.451 433 mov ecx, [edx + CPUMCPU.Host.cr4] 452 434 mov cr4, ecx
Note:
See TracChangeset
for help on using the changeset viewer.