Lines Matching refs:PPATCHINFO
68 PPATCHINFO pPatchTrampoline;
70 PPATCHINFO pPatchRec;
84 PPATCHINFO pPatchInfo;
95 static int patmDisableUnusablePatch(PVM pVM, RTRCPTR pInstrGC, RTRCPTR pConflictAddr, PPATCHINFO pPatch);
96 static int patmActivateInt3Patch(PVM pVM, PPATCHINFO pPatch);
97 static int patmDeactivateInt3Patch(PVM pVM, PPATCHINFO pPatch);
103 static const char *PATMPatchType(PVM pVM, PPATCHINFO pPatch);
114 static int patmR3MarkDirtyPatch(PVM pVM, PPATCHINFO pPatch);
668 DECLINLINE(bool) patmR3DisInstrToStr(PVM pVM, PPATCHINFO pPatch, RTGCPTR32 InstrGCPtr32, uint8_t *pbInstrHC, uint32_t fReadFlags,
684 DECLINLINE(bool) patmR3DisInstr(PVM pVM, PPATCHINFO pPatch, RTGCPTR32 InstrGCPtr32, uint8_t *pbInstrHC, uint32_t fReadFlags,
700 DECLINLINE(bool) patmR3DisInstrNoStrOpMode(PVM pVM, PPATCHINFO pPatch, RTGCPTR32 InstrGCPtr32, uint8_t *pbInstrHC,
726 static void patmLogRawPatchInstr(PVM pVM, PPATCHINFO pPatch, uint32_t fFlags,
1117 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
1155 static int patmr3SetBranchTargets(PVM pVM, PPATCHINFO pPatch)
1252 static void patmAddIllegalInstrRecord(PVM pVM, PPATCHINFO pPatch, RTRCPTR pInstrGC)
1265 static bool patmIsIllegalInstr(PPATCHINFO pPatch, RTRCPTR pInstrGC)
1289 void patmR3AddP2GLookupRecord(PVM pVM, PPATCHINFO pPatch, uint8_t *pPatchInstrHC, RTRCPTR pInstrGC, PATM_LOOKUP_TYPE enmType, bool fDirty)
1351 void patmr3RemoveP2GLookupRecord(PVM pVM, PPATCHINFO pPatch, RTRCPTR pPatchInstrGC)
1436 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
1604 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
1715 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
2157 static void patmPatchAddDisasmJump(PVM pVM, PPATCHINFO pPatch, RTRCPTR pInstrGC)
2177 static bool patmIsKnownDisasmJump(PPATCHINFO pPatch, RTRCPTR pInstrGC)
2200 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
2259 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
2384 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
2408 PPATCHINFO pTargetPatch = patmFindActivePatchByEntrypoint(pVM, pConflictGC, true /* include patch hints */);
2428 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
2573 PPATCHINFO pTargetPatch = patmFindActivePatchByEntrypoint(pVM, addr);
2619 static int patmGenJumpToPatch(PVM pVM, PPATCHINFO pPatch, PPATMP2GLOOKUPREC pCacheRec, bool fAddFixup = true)
2710 static int patmRemoveJumpToPatch(PVM pVM, PPATCHINFO pPatch)
2763 static int patmGenCallToPatch(PVM pVM, PPATCHINFO pPatch, RTRCPTR pTargetGC, PPATMP2GLOOKUPREC pCacheRec, bool fAddFixup = true)
2815 PPATCHINFO pPatch = &pPatchRec->patch;
3047 PPATCHINFO pPatch = &pPatchRec->patch;
3175 PPATCHINFO pPatch = &pPatchRec->patch;
3276 PPATCHINFO pPatch = &pPatchRec->patch;
3407 PPATCHINFO pPatch = &pPatchRec->patch;
3411 PPATCHINFO pPatchToJmp = NULL; /**< Patch the trampoline jumps to. */
3590 PPATCHINFO pPatch = pPatchPage->papPatch[i];
3654 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
3758 PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
3822 static int patmPatchPATMMMIOInstr(PVM pVM, RTRCPTR pInstrGC, PPATCHINFO pPatch)
3876 static int patmActivateInt3Patch(PVM pVM, PPATCHINFO pPatch)
3900 static int patmDeactivateInt3Patch(PVM pVM, PPATCHINFO pPatch)
3928 int patmR3PatchInstrInt3(PVM pVM, RTRCPTR pInstrGC, R3PTRTYPE(uint8_t *) pInstrHC, DISCPUSTATE *pCpu, PPATCHINFO pPatch)
3976 PPATCHINFO pPatch = &pPatchRec->patch;
4141 PPATCHINFO pConflictPatch = patmFindActivePatchByEntrypoint(pVM, pInstrGC);
4610 static uint32_t patmGetInstrSize(PVM pVM, PPATCHINFO pPatch, RTRCPTR pInstrGC)
4638 int patmAddPatchToPage(PVM pVM, RTRCUINTPTR pPage, PPATCHINFO pPatch)
4652 PPATCHINFO *papPatchOld = pPatchPage->papPatch;
4764 int patmRemovePatchFromPage(PVM pVM, RTRCUINTPTR pPage, PPATCHINFO pPatch)
4824 int patmInsertPatchPages(PVM pVM, PPATCHINFO pPatch)
4858 static int patmRemovePatchPages(PVM pVM, PPATCHINFO pPatch)
4933 PPATCHINFO pPatch = pPatchPage->papPatch[i];
5028 PPATCHINFO pPatch = pPatchPage->papPatch[i];
5084 PPATCHINFO pPatch = pPatchPage->papPatch[i];
5228 PPATCHINFO pPatch;
5373 static int patmDisableUnusablePatch(PVM pVM, RTRCPTR pInstrGC, RTRCPTR pConflictAddr, PPATCHINFO pConflictPatch)
5475 PPATCHINFO pPatch;
5594 PPATCHINFO pPatch;
5700 PPATCHINFO pPatch;
5800 PPATCHINFO pPatchTrampoline = &pTrampRec->pPatchTrampoline->patch;
5851 PPATCHINFO patmFindActivePatchByEntrypoint(PVM pVM, RTRCPTR pInstrGC, bool fIncludeHints)
5890 PPATCHINFO pPatch;
5946 static int patmR3MarkDirtyPatch(PVM pVM, PPATCHINFO pPatch)
5986 RTRCPTR patmPatchGCPtr2GuestGCPtr(PVM pVM, PPATCHINFO pPatch, RCPTRTYPE(uint8_t *) pPatchGC)
6006 RTRCPTR patmGuestGCPtrToPatchGCPtr(PVM pVM, PPATCHINFO pPatch, RCPTRTYPE(uint8_t*) pInstrGC)
6043 RTRCPTR patmGuestGCPtrToClosestPatchGCPtr(PVM pVM, PPATCHINFO pPatch, RCPTRTYPE(uint8_t*) pInstrGC)
6721 static const char *PATMPatchType(PVM pVM, PPATCHINFO pPatch)
6753 static const char *PATMPatchState(PVM pVM, PPATCHINFO pPatch)
6783 PPATCHINFO pPatch = (PPATCHINFO)pvSample;
6800 PPATCHINFO pPatch = (PPATCHINFO)pvSample;
6818 RTRCPTR patmPatchQueryStatAddress(PVM pVM, PPATCHINFO pPatch)