VirtualBox

Changeset 48638 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Sep 23, 2013 2:02:29 PM (11 years ago)
Author:
vboxsync
Message:

VMM/CPUMAllA.asm: Don't forget restoring host CR0 when swapping FPU states during #NMs in ring-0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllA.asm

    r48567 r48638  
    161161    ; Use explicit REX prefix. See @bugref{6398}.
    162162    o64 fxsave  [xDX + CPUMCPU.Host.fpu]
     163    o64 fxrstor [xDX + CPUMCPU.Guest.fpu]
    163164%else
    164165    fxsave  [xDX + CPUMCPU.Host.fpu]
    165 %endif
     166    fxrstor [xDX + CPUMCPU.Guest.fpu]
     167%endif
     168    ; We've loaded the guest FPU now
    166169    or      dword [xDX + CPUMCPU.fUseFlags], (CPUM_USED_FPU | CPUM_USED_FPU_SINCE_REM)
    167 %ifdef RT_ARCH_AMD64
    168     o64 fxrstor [xDX + CPUMCPU.Guest.fpu]
    169 %else
    170     fxrstor [xDX + CPUMCPU.Guest.fpu]
    171 %endif
    172170hlfpua_finished_switch:
    173 %ifdef IN_RC
     171%ifndef IN_RING3 ; IN_RC or IN_RING0
    174172    mov     cr0, xCX                            ; load the new cr0 flags.
    175173%endif
Note: See TracChangeset for help on using the changeset viewer.

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