VirtualBox

Changeset 47064 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jul 10, 2013 9:13:22 AM (12 years ago)
Author:
vboxsync
Message:

VMM/CPUMR0: Slightly easier to read.

File:
1 edited

Legend:

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

    r45356 r47064  
    288288
    289289    /* If the FPU state has already been loaded, then it's a guest trap. */
    290     if (pVCpu->cpum.s.fUseFlags & CPUM_USED_FPU)
    291     {
    292         Assert(    ((pCtx->cr0 & (X86_CR0_MP | X86_CR0_EM | X86_CR0_TS)) == (X86_CR0_MP | X86_CR0_EM | X86_CR0_TS))
     290    if (CPUMIsGuestFPUStateActive(pVCpu))
     291    {
     292        Assert(    ((pCtx->cr0 & (X86_CR0_MP | X86_CR0_EM | X86_CR0_TS)) == (X86_CR0_MP | X86_CR0_TS | X86_CR0_EM))
    293293               ||  ((pCtx->cr0 & (X86_CR0_MP | X86_CR0_EM | X86_CR0_TS)) == (X86_CR0_MP | X86_CR0_TS)));
    294294        return VINF_EM_RAW_GUEST_TRAP;
     
    323323    {
    324324        case X86_CR0_MP | X86_CR0_TS:
    325         case X86_CR0_MP | X86_CR0_EM | X86_CR0_TS:
     325        case X86_CR0_MP | X86_CR0_TS | X86_CR0_EM:
    326326            return VINF_EM_RAW_GUEST_TRAP;
    327327        default:
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