VirtualBox

Changeset 100671 in vbox


Ignore:
Timestamp:
Jul 21, 2023 12:28:24 AM (20 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158511
Message:

VMM/IEM: Fix TB revalidation prior to execution. The code is still incomplete, though. bugref:10369

File:
1 edited

Legend:

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

    r100327 r100671  
    11081108static VBOXSTRICTRC iemThreadedTbExec(PVMCPUCC pVCpu, PIEMTB pTb)
    11091109{
    1110     if (memcmp(pTb->pabOpcodes, &pVCpu->iem.s.pbInstrBuf[pVCpu->iem.s.offInstrNextByte],
    1111                RT_MIN(pTb->cbOpcodes, pVCpu->iem.s.cbInstrBuf - pVCpu->iem.s.offInstrNextByte)) == 0)
    1112     { /* likely */ }
     1110    /* Check the opcodes in the first page before starting execution. */
     1111    uint32_t const cbLeadOpcodes = RT_MIN(pTb->cbOpcodes, pVCpu->iem.s.cbInstrBufTotal - pVCpu->iem.s.offInstrNextByte);
     1112    if (memcmp(pTb->pabOpcodes, &pVCpu->iem.s.pbInstrBuf[pVCpu->iem.s.offInstrNextByte], cbLeadOpcodes) == 0)
     1113        Assert(   pTb->cbOpcodes == cbLeadOpcodes
     1114               || cbLeadOpcodes == (GUEST_PAGE_SIZE - (pTb->GCPhysPc & GUEST_PAGE_OFFSET_MASK)));
    11131115    else
    11141116    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette