VirtualBox

Changeset 103535 in vbox


Ignore:
Timestamp:
Feb 22, 2024 3:26:55 PM (9 months ago)
Author:
vboxsync
Message:

VMM/IEM: Quick hack for catching and dealing with pbInstrBuf == NULL (extremely unlikely) and avoid the memcmp crash. bugref:10370

File:
1 edited

Legend:

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

    r103404 r103535  
    27072707
    27082708                pTb = iemTbCacheLookup(pVCpu, pTbCache, GCPhysPc, fExtraFlags);
    2709                 if (pTb)
    2710                     rcStrict = iemTbExec(pVCpu, pTb);
     2709                if (RT_LIKELY(pVCpu->iem.s.pbInstrBuf != NULL))
     2710                {
     2711                    if (pTb)
     2712                        rcStrict = iemTbExec(pVCpu, pTb);
     2713                    else
     2714                        rcStrict = iemThreadedCompile(pVM, pVCpu, GCPhysPc, fExtraFlags);
     2715                }
    27112716                else
    2712                     rcStrict = iemThreadedCompile(pVM, pVCpu, GCPhysPc, fExtraFlags);
     2717                {
     2718                    /* This can only happen if the current PC cannot be translated into a
     2719                       host pointer, which means we're in MMIO or unmapped memory... */
     2720#if defined(VBOX_STRICT) && defined(IN_RING3)
     2721                    rcStrict = DBGFSTOP(pVM);
     2722                    if (rcStrict != VINF_SUCCESS && rcStrict != VERR_DBGF_NOT_ATTACHED)
     2723                        return rcStrict;
     2724#endif
     2725                    rcStrict = IEMExecLots(pVCpu, 2048, cPollRate, NULL);
     2726                }
    27132727                if (rcStrict == VINF_SUCCESS)
    27142728                {
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