VirtualBox

Changeset 97615 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 19, 2022 11:54:13 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154659
Message:

VMM/IEM: Single stepping of far return. bugref:9898

File:
1 edited

Legend:

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

    r97584 r97615  
    23002300        pVCpu->cpum.GstCtx.cs.fFlags     = CPUMSELREG_FLAGS_VALID;
    23012301        pVCpu->cpum.GstCtx.cs.u64Base    = (uint32_t)uNewCs << 4;
    2302         pVCpu->cpum.GstCtx.eflags.Bits.u1RF = 0;
    23032302        if (cbPop)
    23042303            iemRegAddToRsp(pVCpu, cbPop);
    2305         return VINF_SUCCESS;
     2304        return iemRegFinishClearingRF(pVCpu);
    23062305    }
    23072306
     
    25632562        if (cbPop)
    25642563            iemRegAddToRsp(pVCpu, cbPop);
    2565         pVCpu->cpum.GstCtx.eflags.Bits.u1RF = 0;
    2566 
    2567         /* Done! */
    25682564    }
    25692565    /*
     
    26332629        if (cbPop)
    26342630            iemRegAddToRsp(pVCpu, cbPop);
    2635         pVCpu->cpum.GstCtx.eflags.Bits.u1RF = 0;
    26362631    }
    26372632
    26382633    /* Flush the prefetch buffer. */
    26392634    IEM_FLUSH_PREFETCH_HEAVY(pVCpu, cbInstr); /** @todo use light flush for same privlege? */
    2640     return VINF_SUCCESS;
     2635
     2636    return iemRegFinishClearingRF(pVCpu);
    26412637}
    26422638
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