VirtualBox

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


Ignore:
Timestamp:
Sep 25, 2013 8:24:06 AM (11 years ago)
Author:
vboxsync
Message:

VMM/CPUMAllA.asm: Revert r89225, caller already saves/restores CR0. Added a comment explain this.

File:
1 edited

Legend:

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

    r48639 r48673  
    3838
    3939BEGINCODE
    40 
    4140
    4241;;
     
    171170%endif
    172171hlfpua_finished_switch:
    173 %ifndef IN_RING3 ; IN_RC or IN_RING0
     172
     173    ; Load new CR0 value.
     174    ; IN_RING0 the caller saves/restores CR0 anyway, so avoid the extra CR0 write.
     175    ; Currently the only caller in ring-0 is CPUMR0LoadGuestFPU()->CPUMHandleLazyFPU().
     176    ;; @todo Optimize the many unconditional CR0 writes.
     177%ifdef IN_RC
    174178    mov     cr0, xCX                            ; load the new cr0 flags.
    175179%endif
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