VirtualBox

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


Ignore:
Timestamp:
Jul 25, 2023 12:01:00 PM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158540
Message:

VMM/IEM: TB instruction count initialization and overflow prot. bugref:10369

File:
1 edited

Legend:

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

    r100695 r100696  
    226226
    227227#define IEM_MC2_END_EMIT_CALLS() \
    228         pTb->cInstructions++; \
     228        Assert(pTb->cInstructions <= pTb->Thrd.cCalls); \
     229        if (pTb->cInstructions < 255) \
     230            pTb->cInstructions++; \
    229231    } while (0)
    230232
     
    624626                pTb->x86.fAttr              = (uint16_t)pVCpu->cpum.GstCtx.cs.Attr.u;
    625627                pTb->fFlags                 = (pVCpu->iem.s.fExec & IEMTB_F_IEM_F_MASK) | fExtraFlags;
     628                pTb->cInstructions          = 0;
    626629
    627630                /* Init the first opcode range. */
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