Lines Matching refs:cbPatchJump

862                 Assert(pRec->pSource - pPatch->patch.cbPatchJump == pPatch->patch.pPrivInstrGC);
864 if (pPatch->patch.cbPatchJump == SIZEOF_NEAR_COND_JUMP32)
875 if (pPatch->patch.cbPatchJump == SIZEOF_NEARJUMP32)
883 AssertMsgFailed(("Invalid patch jump size %d\n", pPatch->patch.cbPatchJump));
886 Assert(pPatch->patch.cbPatchJump <= sizeof(temp));
891 rc = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), temp, pPatch->patch.pPrivInstrGC, pPatch->patch.cbPatchJump);
903 if (memcmp(temp, oldJump, pPatch->patch.cbPatchJump))
1479 && pCurInstrGC + pCpu->cbInstr < pPatch->pPrivInstrGC + SIZEOF_NEARJUMP32) /* hardcoded patch jump size; cbPatchJump is still zero */
1536 if (pCurInstrGC > pPatch->pPrivInstrGC && pCurInstrGC < pPatch->pPrivInstrGC + SIZEOF_NEARJUMP32) /* hardcoded patch jump size; cbPatchJump is still zero */
2625 Assert(pPatch->cbPatchJump <= sizeof(temp));
2636 if (pPatch->cbPatchJump == SIZEOF_NEARJUMP32)
2641 if (patmPatchAddReloc32(pVM, pPatch, &pPB[1], FIXUP_REL_JMPTOPATCH, pPatch->pPrivInstrGC + pPatch->cbPatchJump,
2650 *(uint32_t *)&temp[1] = (uint32_t)pPatch->pPatchJumpDestGC - ((uint32_t)pPatch->pPrivInstrGC + pPatch->cbPatchJump); //return address
2653 if (pPatch->cbPatchJump == SIZEOF_NEAR_COND_JUMP32)
2658 if (patmPatchAddReloc32(pVM, pPatch, &pPB[2], FIXUP_REL_JMPTOPATCH, pPatch->pPrivInstrGC + pPatch->cbPatchJump,
2668 *(uint32_t *)&temp[2] = (uint32_t)pPatch->pPatchJumpDestGC - ((uint32_t)pPatch->pPrivInstrGC + pPatch->cbPatchJump); //return address
2679 Assert(pPatch->cbPatchJump == SIZEOF_NEARJUMP32);
2694 rc = PGMPhysSimpleDirtyWriteGCPtr(VMMGetCpu0(pVM), pPatch->pPrivInstrGC, temp, pPatch->cbPatchJump);
2732 int rc = PGMPhysSimpleDirtyWriteGCPtr(VMMGetCpu0(pVM), pPatch->pPrivInstrGC, pPatch->aPrivInstr, pPatch->cbPatchJump);
2769 Assert(pPatch->cbPatchJump <= sizeof(temp));
2774 Assert(pPatch->cbPatchJump == SIZEOF_NEARJUMP32);
2791 rc = PGMPhysSimpleDirtyWriteGCPtr(VMMGetCpu0(pVM), pPatch->pPrivInstrGC, temp, pPatch->cbPatchJump);
2963 pPatch->cbPatchJump = SIZEOF_NEARJUMP32;
2965 rc = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), pPatch->aPrivInstr, pPatch->pPrivInstrGC, pPatch->cbPatchJump);
3131 pPatch->cbPatchJump = 0;
3206 pPatch->cbPatchJump = 0;
3516 pPatch->cbPatchJump = 0;
3716 pPatch->cbPatchJump = SIZEOF_NEARJUMP32;
3718 rc = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), pPatch->aPrivInstr, pPatch->pPrivInstrGC, pPatch->cbPatchJump);
3786 pPatch->cbPatchJump = pPatch->cbPrivInstr; /* bit of a misnomer in this case; size of replacement instruction. */
3888 pPatch->cbPatchJump = sizeof(bASMInt3);
3939 pPatch->cbPatchJump = sizeof(bASMInt3); /* bit of a misnomer in this case; size of replacement instruction. */
4033 pPatch->cbPatchJump = pCpu->cbInstr;
4035 rc = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), pPatch->aPrivInstr, pPatch->pPrivInstrGC, pPatch->cbPatchJump);
4072 pPatch->pInstrGCHighest = pInstrGC + pPatch->cbPatchJump;
4576 STAMR3RegisterF(pVM, &pPatchRec->patch.cbPatchJump, STAMTYPE_U32, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, NULL, "/PATM/PatchBD/0x%RRv/cbPatchJump", pPatchRec->patch.pPrivInstrGC);
4943 if ( pPatch->cbPatchJump
4945 && pGuestPtrGC < pPatch->pPrivInstrGC + pPatch->cbPatchJump)
5140 && pInstrGC < pPatchRec->patch.pPrivInstrGC + pPatchRec->patch.cbPatchJump)
5145 if (pPatchRec->patch.cbPatchJump == 1)
5187 && (off = GCPtrInstr - pPatchRec->patch.pPrivInstrGC) < pPatchRec->patch.cbPatchJump)
5190 uint32_t const cbMax = pPatchRec->patch.cbPatchJump - off;
5206 if (pPatchRec->patch.cbPatchJump == 1)
5278 Assert(pPatch->cbPatchJump < sizeof(temp));
5281 rc = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), temp, pPatch->pPrivInstrGC, pPatch->cbPatchJump);
5318 Assert(pPatch->cbPatchJump < sizeof(temp));
5321 rc = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), temp, pPatch->pPrivInstrGC, pPatch->cbPatchJump);
5493 Assert(pPatch->cbPatchJump < sizeof(temp));
5496 int rc2 = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), temp, pPatch->pPrivInstrGC, pPatch->cbPatchJump);
5500 if (memcmp(temp, pPatch->aPrivInstr, pPatch->cbPatchJump))
5532 while(i < pPatch->cbPatchJump)
5548 Assert(pPatch->cbPatchJump < sizeof(temp));
5551 int rc2 = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), temp, pPatch->pPrivInstrGC, pPatch->cbPatchJump);
5554 if (memcmp(temp, pPatch->aPrivInstr, pPatch->cbPatchJump))
5860 && pInstrGC < pPatchRec->patch.pPrivInstrGC + pPatchRec->patch.cbPatchJump)
5870 && pInstrGC < pPatchRec->patch.pPrivInstrGC + pPatchRec->patch.cbPatchJump)
6100 && pPrivInstrGC < pPatchRec->patch.pPrivInstrGC + pPatchRec->patch.cbPatchJump)
6639 if (pNewEip >= pPatch->patch.pPrivInstrGC && pNewEip < pPatch->patch.pPrivInstrGC + pPatch->patch.cbPatchJump)