VirtualBox

Changeset 14900 in vbox for trunk/src/VBox/VMM/VMMSwitcher


Ignore:
Timestamp:
Dec 2, 2008 1:30:52 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
40245
Message:

Switcher updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMSwitcher/LegacyandAMD64.mac

    r14785 r14900  
    430430    lss     esp, [edx + CPUMCPU.Host.esp]
    431431
    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_FPU
    436     jz near gth_fpu_no
    437     mov     ecx, cr0
    438     and     ecx, ~(X86_CR0_TS | X86_CR0_EM)
    439     mov     cr0, ecx
    440 
    441     fxsave  [edx + CPUMCPU.Guest.fpu]
    442     fxrstor [edx + CPUMCPU.Host.fpu]
    443     jmp near gth_fpu_no
    444 
    445 ALIGNCODE(16)
    446 gth_fpu_no:
    447 
    448432    ; Control registers.
    449     ; Would've liked to have these higher up in case of crashes, but
    450     ; the fpu stuff must be done before we restore cr0.
    451433    mov     ecx, [edx + CPUMCPU.Host.cr4]
    452434    mov     cr4, ecx
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette