VirtualBox

Changeset 87308 in vbox


Ignore:
Timestamp:
Jan 19, 2021 5:54:51 PM (4 years ago)
Author:
vboxsync
Message:

VMM/IEM: Make sure to set XSAVE_C_YMM in the xstate header so changes we make are picked up when HM/NEM resumes execution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r85184 r87308  
    69926992#endif
    69936993    IEM_CTX_IMPORT_NORET(pVCpu, CPUMCTX_EXTRN_X87 | CPUMCTX_EXTRN_SSE_AVX | CPUMCTX_EXTRN_OTHER_XSAVE | CPUMCTX_EXTRN_XCRx);
     6994
     6995    /* Make sure any changes are loaded the next time around. */
     6996    pVCpu->cpum.GstCtx.CTX_SUFF(pXState)->Hdr.bmXState |= XSAVE_C_SSE;
    69946997}
    69956998
     
    70307033#endif
    70317034    IEM_CTX_IMPORT_NORET(pVCpu, CPUMCTX_EXTRN_X87 | CPUMCTX_EXTRN_SSE_AVX | CPUMCTX_EXTRN_OTHER_XSAVE | CPUMCTX_EXTRN_XCRx);
     7035
     7036    /* Just assume we're going to make changes to the SSE and YMM_HI parts. */
     7037    pVCpu->cpum.GstCtx.CTX_SUFF(pXState)->Hdr.bmXState |= XSAVE_C_YMM | XSAVE_C_SSE;
    70327038}
    70337039
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