VirtualBox

Changeset 60790 in vbox for trunk


Ignore:
Timestamp:
May 2, 2016 2:46:12 PM (9 years ago)
Author:
vboxsync
Message:

IEM: iret quick fix.

File:
1 edited

Legend:

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

    r60787 r60790  
    30013001    PCPUMCTX pCtx = pIemCpu->CTX_SUFF(pCtx);
    30023002    NOREF(cbInstr);
     3003    Assert(enmEffOpSize == IEMMODE_32BIT || enmEffOpSize == IEMMODE_16BIT);
    30033004
    30043005    /*
     
    33603361 * @param   enmEffOpSize    The effective operand size.
    33613362 */
    3362 IEM_CIMPL_DEF_1(iemCImpl_iret_long, IEMMODE, enmEffOpSize)
     3363IEM_CIMPL_DEF_1(iemCImpl_iret_64bit, IEMMODE, enmEffOpSize)
    33633364{
    33643365    PCPUMCTX pCtx = pIemCpu->CTX_SUFF(pCtx);
     
    36643665    if (IEM_IS_REAL_OR_V86_MODE(pIemCpu))
    36653666        return IEM_CIMPL_CALL_1(iemCImpl_iret_real_v8086, enmEffOpSize);
    3666     if (IEM_IS_LONG_MODE(pIemCpu))
    3667         return IEM_CIMPL_CALL_1(iemCImpl_iret_long, enmEffOpSize);
     3667    if (pIemCpu->enmCpuMode == IEMMODE_64BIT)
     3668        return IEM_CIMPL_CALL_1(iemCImpl_iret_64bit, enmEffOpSize);
    36683669    return     IEM_CIMPL_CALL_1(iemCImpl_iret_prot, enmEffOpSize);
    36693670}
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