VirtualBox

Changeset 16109 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jan 21, 2009 1:35:14 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41824
Message:

CPUMR0: Don't forget to set CPUM_USED_FPU_SINCE_REM.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp

    r16108 r16109  
    173173        /* Save/Restore the state on entry as we need to be in 64 bits mode to access the full state. */
    174174        pVCpu->cpum.s.fUseFlags |= CPUM_SYNC_FPU_STATE | CPUM_USED_FPU;
     175        /** @todo who is saving the host state??  */
    175176    }
    176177    else
     
    263264    }
    264265
    265     pVCpu->cpum.s.fUseFlags |= CPUM_USED_FPU; /** @todo clean up, this is done above by the ASM worker. */
     266    pVCpu->cpum.s.fUseFlags |= CPUM_USED_FPU | CPUM_USED_FPU_SINCE_REM; /** @todo clean up, this is done above by the ASM worker. */
    266267    return VINF_SUCCESS;
    267268}
  • trunk/src/VBox/VMM/VMMR0/CPUMR0A.asm

    r16108 r16109  
    8484
    8585    ; Switch the state.
    86     or      dword [xDX + CPUMCPU.fUseFlags], CPUM_USED_FPU
     86    or      dword [xDX + CPUMCPU.fUseFlags], (CPUM_USED_FPU | CPUM_USED_FPU_SINCE_REM)
    8787
    8888    mov     xAX, cr0                    ; Make sure its safe to access the FPU state.
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