Lines Matching refs:pTargetGC
1184 PPATMPATCHREC pFunctionRec = patmQueryFunctionPatch(pVM, pRec->pTargetGC);
1189 if (PATMR3HasBeenPatched(pVM, pRec->pTargetGC) == false)
1190 rc = PATMR3InstallPatch(pVM, pRec->pTargetGC, PATMFL_CODE32 | PATMFL_DUPLICATE_FUNCTION);
1223 pBranchTargetGC = PATMR3QueryPatchGCPtr(pVM, pRec->pTargetGC);
1226 pBranchTargetGC = patmGuestGCPtrToPatchGCPtr(pVM, pPatch, pRec->pTargetGC);
1230 AssertMsgFailed(("patmr3SetBranchTargets: patmGuestGCPtrToPatchGCPtr failed for %08X\n", pRec->pTargetGC));
1773 RCPTRTYPE(uint8_t *) pTargetGC = PATMResolveBranch(pCpu, pCurInstrGC);
1774 if (pTargetGC == 0)
1782 Assert(!PATMIsPatchGCAddr(pVM, pTargetGC));
1783 rc = patmPatchGenCall(pVM, pPatch, pCpu, pCurInstrGC, pTargetGC, false);
1788 rc = patmPatchGenRelJump(pVM, pPatch, pTargetGC, pCpu->pCurInstr->uOpcode, !!(pCpu->fPrefix & DISPREFIX_OPSIZE));
2319 RTRCPTR pTargetGC = PATMResolveBranch(&cpu, pCurInstrGC);
2322 if (pTargetGC == 0)
2329 if (!PATMIsPatchGCAddr(pVM, pTargetGC))
2335 pOrgTargetGC = PATMR3PatchToGCPtr(pVM, pTargetGC, 0);
2343 if (patmIsKnownDisasmJump(pPatch, pTargetGC) == false)
2346 patmPatchAddDisasmJump(pVM, pPatch, pTargetGC);
2349 rc = patmr3DisasmCode(pVM, pInstrGC, pTargetGC, pfnPATMR3Disasm, pCacheRec);
2763 static int patmGenCallToPatch(PVM pVM, PPATCHINFO pPatch, RTRCPTR pTargetGC, PPATMP2GLOOKUPREC pCacheRec, bool fAddFixup = true)
2780 pPatch->pPrivInstrGC + SIZEOF_NEARJUMP32, pTargetGC) != VINF_SUCCESS)
2789 *(uint32_t *)&temp[1] = (uint32_t)pTargetGC - ((uint32_t)pPatch->pPrivInstrGC + SIZEOF_NEARJUMP32); //return address
3657 RTRCPTR pTargetGC;
3671 pTargetGC = PATMResolveBranch(pCpu, pInstrGC);
3672 if (pTargetGC == 0)
3679 pPatchFunction = (PPATMPATCHREC)RTAvloU32Get(&pVM->patm.s.PatchLookupTreeHC->PatchTree, pTargetGC);
3689 pTmpInstrHC = patmR3GCVirtToHCVirt(pVM, pCacheRec, pTargetGC);
3694 disret = patmR3DisInstr(pVM, pPatch, pTargetGC, pTmpInstrHC, PATMREAD_ORGCODE, &cpu, &cbInstr);
3698 pTargetGC = PATMResolveBranch(&cpu, pTargetGC);
3699 if (pTargetGC == 0)
3704 pPatchFunction = (PPATMPATCHREC)RTAvloU32Get(&pVM->patm.s.PatchLookupTreeHC->PatchTree, pTargetGC);
3709 AssertMsgFailed(("Unable to find duplicate function %RRv\n", pTargetGC));
6242 RTRCPTR pTargetGC = PATMResolveBranch(&CpuNew, pCurInstrGC);
6244 if ( pTargetGC >= pOrgInstrGC
6245 && pTargetGC <= pOrgInstrGC + cbDirty