VirtualBox

Changeset 105571 in vbox


Ignore:
Timestamp:
Aug 1, 2024 6:22:45 PM (4 months ago)
Author:
vboxsync
Message:

VMM/IEMAllN8veHlpA.asm: Build fix and adjustments for iemNativeFpCtrlRegRestore. bugref:10652

File:
1 edited

Legend:

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

    r105490 r105571  
    287287; @param    uRegFpCtrl  (gcc:rdi, msc:rcx)  The MXCSR value to restore.
    288288;
     289; @todo r=bird: could use the _mm_setcsr() intrinsic instead...
     290;
    289291ALIGNCODE(16)
    290292BEGINPROC   iemNativeFpCtrlRegRestore
    291         sub     xSP, 4
    292 %ifdef RT_OS_WINDOWS
    293         mov     [xSP], edx
    294 %else
    295         mov     [xSP], edi
    296 %endif
    297 
     293SEH64_END_PROLOGUE
     294
     295%ifdef RT_OS_WINDOWS
     296        mov     [xSP + xCB], edi            ; use the first parameter spill slot.
     297        ldmxcsr [xSP + xCB]
     298%else
     299        push    xDI
    298300        ldmxcsr [xSP]
    299         add     xSP, 4
     301        add     xSP, xCB
     302%endif
     303
    300304        ret
    301305ENDPROC     iemNativeFpCtrlRegRestore
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