VirtualBox

Changeset 1875 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Apr 3, 2007 11:14:29 AM (18 years ago)
Author:
vboxsync
Message:

Got rid of annoying assertions.

Location:
trunk/src/VBox/VMM/PATM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/PATM.cpp

    r1833 r1875  
    541541            return VINF_SUCCESS;
    542542#ifdef VBOX_STRICT
    543         if (!(pDisInfo->pPatchInfo->flags & (PATMFL_DUPLICATE_FUNCTION|PATMFL_IDTHANDLER)))
     543        if (    !(pDisInfo->pPatchInfo->flags & (PATMFL_DUPLICATE_FUNCTION|PATMFL_IDTHANDLER))
     544            &&  !(pDisInfo->fReadFlags & PATMREAD_NOCHECK))
    544545        {
    545546            Assert(PATMR3IsInsidePatchJump(pDisInfo->pVM, pSrc, NULL) == false);
     
    43674368
    43684369        cpu.mode = (pPatch->flags & PATMFL_CODE32) ? CPUMODE_32BIT : CPUMODE_16BIT;
    4369         disret = PATMR3DISInstr(pVM, pPatch, &cpu, pInstrGC, pInstrHC, &opsize, NULL);
     4370        disret = PATMR3DISInstr(pVM, pPatch, &cpu, pInstrGC, pInstrHC, &opsize, NULL, PATMREAD_ORGCODE | PATMREAD_NOCHECK);
    43704371        if (disret)
    43714372            return opsize;
  • trunk/src/VBox/VMM/PATM/PATMInternal.h

    r1125 r1875  
    671671#define PATMREAD_RAWCODE        1  /* read code as-is */
    672672#define PATMREAD_ORGCODE        2  /* read original guest opcode bytes; not the patched bytes */
     673#define PATMREAD_NOCHECK        4  /* don't check for patch conflicts */
    673674
    674675/*
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