VirtualBox

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


Ignore:
Timestamp:
Jan 21, 2009 12:16:27 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41823
Message:

CPUM: Fixed 64-bit FPU management on the mac.

File:
1 edited

Legend:

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

    r15416 r16108  
    156156%endif
    157157%ifndef RT_ARCH_AMD64
    158     mov     eax, edx
    159     ; Calculate the PCPUM pointer
     158    mov     eax, edx                            ; Calculate the PCPUM pointer
    160159    sub     eax, [edx + CPUMCPU.ulOffCPUM]
    161160    test    dword [eax + CPUM.CPUFeatures.edx], X86_CPUID_FEATURE_EDX_FXSR
     
    179178    fnsave  [xDX + CPUMCPU.Host.fpu]
    180179    or      dword [xDX + CPUMCPU.fUseFlags], dword (CPUM_USED_FPU | CPUM_USED_FPU_SINCE_REM) ; yasm / nasm
    181     mov     eax, [xDX + CPUMCPU.Guest.fpu]    ; control word
     180    mov     eax, [xDX + CPUMCPU.Guest.fpu]      ; control word
    182181    not     eax                                 ; 1 means exception ignored (6 LS bits)
    183182    and     eax, byte 03Fh                      ; 6 LS bits only
    184     test    eax, [xDX + CPUMCPU.Guest.fpu + 4]; status word
     183    test    eax, [xDX + CPUMCPU.Guest.fpu + 4]  ; status word
    185184    jz short hlfpua_no_exceptions_pending
    186185    ; technically incorrect, but we certainly don't want any exceptions now!!
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