Changeset 61058 in vbox for trunk/src/VBox/VMM/VMMSwitcher/AMD64andLegacy.mac
- Timestamp:
- May 19, 2016 7:12:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMSwitcher/AMD64andLegacy.mac
r58122 r61058 454 454 ;; handle use flags. 455 455 mov esi, [rdx + r8 + CPUMCPU.fUseFlags] ; esi == use flags. 456 and esi, ~ CPUM_USED_FPU ; Clear CPUM_USED_* flags. ;;@todo FPU check can be optimized to use cr0 flags!456 and esi, ~(CPUM_USED_FPU_GUEST | CPUM_USED_FPU_HOST) ; Clear CPUM_USED_* flags. 457 457 mov [rdx + r8 + CPUMCPU.fUseFlags], esi 458 458 … … 1064 1064 ; Using fxrstor should ensure that we're not causing unwanted exception on the host. 1065 1065 mov esi, [rdx + r8 + CPUMCPU.fUseFlags] ; esi == use flags. 1066 test esi, CPUM_USED_FPU1066 test esi, (CPUM_USED_FPU_GUEST | CPUM_USED_FPU_HOST) 1067 1067 jz gth_fpu_no 1068 1068 mov rcx, cr0 … … 1072 1072 mov r10, rdx ; Save rdx. 1073 1073 1074 test esi, CPUM_USED_FPU_GUEST 1075 jz gth_fpu_host 1076 1074 1077 mov eax, [r10 + r8 + CPUMCPU.Guest.fXStateMask] 1075 mov r9, [r10 + r8 + CPUMCPU.Guest.pXStateR0]1078 mov r9, [r10 + r8 + CPUMCPU.Guest.pXStateR0] 1076 1079 or eax, eax 1077 1080 jz gth_fpu_guest_fxsave … … 1084 1087 gth_fpu_host: 1085 1088 mov eax, [r10 + r8 + CPUMCPU.Host.fXStateMask] 1086 mov r9, [r10 + r8 + CPUMCPU.Host.pXStateR0]1089 mov r9, [r10 + r8 + CPUMCPU.Host.pXStateR0] 1087 1090 or eax, eax 1088 1091 jz gth_fpu_host_fxrstor
Note:
See TracChangeset
for help on using the changeset viewer.