VirtualBox

Changeset 464 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 31, 2007 2:58:15 PM (18 years ago)
Author:
vboxsync
Message:

Renamed CR4 masks

Location:
trunk/src/VBox/VMM
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r186 r464  
    125125        Log(("The CPU doesn't support FXSAVE/FXRSTOR!\n"));
    126126        /* No FXSAVE implies no SSE */
    127         pVM->cpum.s.CR4.Mask  = X86_CR4_PVI | X86_CR4_VME;
    128         pVM->cpum.s.CR4.OSFSXR = 0;
     127        pVM->cpum.s.CR4.AndMask = X86_CR4_PVI | X86_CR4_VME;
     128        pVM->cpum.s.CR4.OrMask = 0;
    129129    }
    130130    else
    131131    {
    132         pVM->cpum.s.CR4.Mask  = X86_CR4_OSXMMEEXCPT | X86_CR4_PVI | X86_CR4_VME;
    133         pVM->cpum.s.CR4.OSFSXR = X86_CR4_OSFSXR;
     132        pVM->cpum.s.CR4.AndMask = X86_CR4_OSXMMEEXCPT | X86_CR4_PVI | X86_CR4_VME;
     133        pVM->cpum.s.CR4.OrMask = X86_CR4_OSFSXR;
    134134    }
    135135
  • trunk/src/VBox/VMM/CPUMInternal.h

    r140 r464  
    317317    struct
    318318    {
    319         uint32_t Mask;
    320         uint32_t OSFSXR;
     319        uint32_t AndMask;
     320        uint32_t OrMask;
    321321    } CR4;
    322322
  • trunk/src/VBox/VMM/CPUMInternal.mac

    r19 r464  
    377377    .CPUFeatures.ecx      resd    1
    378378    ; CR4 masks
    379     .CR4.Mask             resd    1
    380     .CR4.OSFSXR           resd    1
     379    .CR4.AndMask          resd    1
     380    .CR4.OrMask           resd    1
    381381    ; entered rawmode?
    382382    .fRawEntered          resb    1
  • trunk/src/VBox/VMM/VMMSwitcher/AMD64ToPAE.asm

    r414 r464  
    230230
    231231    ;
    232     ; CR4.Mask and CR4.OSFSXR are set in CPUMR3Init based on the presence of
     232    ; CR4.AndMask and CR4.OrMask are set in CPUMR3Init based on the presence of
    233233    ; FXSAVE support on the host CPU
    234234    ;
    235     and     ecx, [rdx + CPUM.CR4.Mask]
     235    and     ecx, [rdx + CPUM.CR4.AndMask]
    236236    or      eax, ecx
    237     or      eax, [rdx + CPUM.CR4.OSFSXR]
     237    or      eax, [rdx + CPUM.CR4.OrMask]
    238238    mov     cr4, rax
    239239    DEBUG_CHAR('c')                     ; trashes esi
  • trunk/src/VBox/VMM/VMMSwitcher/PAEand32Bit.mac

    r19 r464  
    193193
    194194    ;
    195     ; CR4.Mask and CR4.OSFSXR are set in CPUMR3Init based on the presence of
     195    ; CR4.AndMask and CR4.OrMask are set in CPUMR3Init based on the presence of
    196196    ; FXSAVE support on the host CPU
    197197    ;
    198     and     ecx, [edx + CPUM.CR4.Mask]
     198    and     ecx, [edx + CPUM.CR4.AndMask]
    199199    or      eax, ecx
    200     or      eax, [edx + CPUM.CR4.OSFSXR]
     200    or      eax, [edx + CPUM.CR4.OrMask]
    201201    mov     cr4, eax
    202202
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