VirtualBox

Changeset 72194 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
May 11, 2018 2:28:46 PM (7 years ago)
Author:
vboxsync
Message:

IEM: Comments, asserts, no real change.

File:
1 edited

Legend:

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

    r72181 r72194  
    18251825     * limit.
    18261826     */
     1827    /** @todo Robert Collins claims (The Segment Descriptor Cache, DDJ August
     1828     *        1998) that up to and including the Intel 486, far control
     1829     *        transfers in real mode set default CS attributes (0x93) and also
     1830     *        set a 64K segment limit. Starting with the Pentium, the
     1831     *        attributes and limit are left alone but the access rights are
     1832     *        ignored. We only implement the Pentium+ behavior.
     1833     *  */
    18271834    if (IEM_IS_REAL_OR_V86_MODE(pVCpu))
    18281835    {
     1836        Assert(enmEffOpSize == IEMMODE_16BIT || enmEffOpSize == IEMMODE_32BIT);
    18291837        if (offSeg > pCtx->cs.u32Limit)
    18301838        {
     
    19942002     * limit.
    19952003     */
     2004    /** @todo See comment for similar code in iemCImpl_FarJmp */
    19962005    if (IEM_IS_REAL_OR_V86_MODE(pVCpu))
    19972006    {
     
    22472256     * Real mode and V8086 mode are easy.
    22482257     */
     2258    /** @todo See comment for similar code in iemCImpl_FarJmp */
    22492259    if (IEM_IS_REAL_OR_V86_MODE(pVCpu))
    22502260    {
     
    22662276        pCtx->cs.u64Base    = (uint32_t)uNewCs << 4;
    22672277        pCtx->eflags.Bits.u1RF = 0;
    2268         /** @todo do we load attribs and limit as well? */
    22692278        if (cbPop)
    22702279            iemRegAddToRsp(pVCpu, pCtx, cbPop);
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