VirtualBox

Changeset 102783 in vbox for trunk/src


Ignore:
Timestamp:
Jan 8, 2024 11:54:39 AM (13 months ago)
Author:
vboxsync
Message:

VMM/IEM: Corrected assertion in iemOpCommonPushSReg for 64-bit mode. bugref:10371

File:
1 edited

Legend:

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

    r102719 r102783  
    891891FNIEMOP_DEF_1(iemOpCommonPushSReg, uint8_t, iReg)
    892892{
    893     Assert(iReg < X86_SREG_FS || !IEM_IS_64BIT_CODE(pVCpu));
     893    Assert(iReg >= X86_SREG_FS || !IEM_IS_64BIT_CODE(pVCpu));
    894894    IEMOP_HLP_DEFAULT_64BIT_OP_SIZE();
    895895
     
    911911            IEM_MC_LOCAL(uint32_t, u32Value);
    912912            IEM_MC_FETCH_SREG_ZX_U32(u32Value, iReg);
    913             IEM_MC_PUSH_U32_SREG(u32Value);
     913            IEM_MC_PUSH_U32_SREG(u32Value); /* Intel CPUs do funny things with this instruction. */
    914914            IEM_MC_ADVANCE_RIP_AND_FINISH();
    915915            IEM_MC_END();
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