Changeset 1875 in vbox for trunk/src/VBox/VMM/PATM
- Timestamp:
- Apr 3, 2007 11:14:29 AM (18 years ago)
- Location:
- trunk/src/VBox/VMM/PATM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATM.cpp
r1833 r1875 541 541 return VINF_SUCCESS; 542 542 #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)) 544 545 { 545 546 Assert(PATMR3IsInsidePatchJump(pDisInfo->pVM, pSrc, NULL) == false); … … 4367 4368 4368 4369 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); 4370 4371 if (disret) 4371 4372 return opsize; -
trunk/src/VBox/VMM/PATM/PATMInternal.h
r1125 r1875 671 671 #define PATMREAD_RAWCODE 1 /* read code as-is */ 672 672 #define PATMREAD_ORGCODE 2 /* read original guest opcode bytes; not the patched bytes */ 673 #define PATMREAD_NOCHECK 4 /* don't check for patch conflicts */ 673 674 674 675 /*
Note:
See TracChangeset
for help on using the changeset viewer.