- Timestamp:
- Jan 26, 2007 5:06:04 PM (18 years ago)
- Location:
- trunk/src/VBox/VMM/PATM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATM.cpp
r347 r367 4709 4709 PPATCHINFO pPatch = pPatchPage->aPatch[i]; 4710 4710 4711 if ( ++pPatch->cInvalidWrites > PATM_MAX_INVALID_WRITES)4711 if (pPatch->cInvalidWrites > PATM_MAX_INVALID_WRITES) 4712 4712 { 4713 4713 LogRel(("PATM: Disable block at %VGv - invalid write %VGv-%VGv \n", pPatch->pPrivInstrGC, GCPtr, GCPtr+cbWrite)); -
trunk/src/VBox/VMM/PATM/PATMInternal.h
r302 r367 318 318 uint32_t cMaxPatches; 319 319 /** Array of patch pointers for this page. */ 320 PPATCHINFO *aPatch;320 HCPTRTYPE(PPATCHINFO *)aPatch; 321 321 } PATMPATCHPAGE, *PPATMPATCHPAGE; 322 322 -
trunk/src/VBox/VMM/PATM/VMMGC/PATMGC.cpp
r23 r367 125 125 STAM_COUNTER_INC(&pVM->patm.s.StatPatchWriteInterpretedFailed); 126 126 } 127 HCPTRTYPE(PPATCHINFO) *paPatch = (HCPTRTYPE(PPATCHINFO) *)MMHyperHC2GC(pVM, pPatchPage->aPatch); 128 129 /* Increase the invalid write counter for each patch that's registered for that page. */ 130 for (uint32_t i=0;i<pPatchPage->cCount;i++) 131 { 132 PPATCHINFO pPatch = (PPATCHINFO)MMHyperHC2GC(pVM, paPatch[i]); 133 134 pPatch->cInvalidWrites++; 135 } 136 127 137 STAM_PROFILE_ADV_STOP(&pVM->patm.s.StatPatchWriteDetect, a); 128 138 return VINF_EM_RAW_EMULATE_INSTR;
Note:
See TracChangeset
for help on using the changeset viewer.