VirtualBox

Changeset 61636 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 9, 2016 6:46:31 PM (9 years ago)
Author:
vboxsync
Message:

IEM: Tiny fixes + enable callgate emulation (2nd try).

File:
1 edited

Legend:

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

    r61506 r61636  
    10201020IEM_CIMPL_DEF_4(iemCImpl_BranchCallGate, uint16_t, uSel, IEMBRANCH, enmBranch, IEMMODE, enmEffOpSize, PIEMSELDESC, pDesc)
    10211021{
     1022#define IEM_IMPLEMENTS_CALLGATE
    10221023#ifndef IEM_IMPLEMENTS_CALLGATE
    10231024    IEM_RETURN_ASPECT_NOT_IMPLEMENTED();
     
    12041205        /* Calls are much more complicated. */
    12051206
    1206         if (DescCS.Legacy.Gen.u2Dpl < pIemCpu->uCpl)
     1207        if (!(DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_CONF) && (DescCS.Legacy.Gen.u2Dpl < pIemCpu->uCpl))
    12071208        {
    12081209            uint16_t    offNewStack;    /* Offset of new stack in TSS. */
     
    12281229
    12291230            /* Figure out where the new stack pointer is stored in the TSS. */
    1230             uNewCSDpl = uNewCS & X86_SEL_RPL;
     1231            uNewCSDpl = DescCS.Legacy.Gen.u2Dpl;
    12311232            if (!IEM_IS_LONG_MODE(pIemCpu))
    12321233            {
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