Lines Matching refs:cbInstr

1479                 && pCurInstrGC + pCpu->cbInstr < pPatch->pPrivInstrGC + SIZEOF_NEARJUMP32) /* hardcoded patch jump size; cbPatchJump is still zero */
1514 pPatch->cbPatchBlockSize += pCpu->cbInstr;
1584 Log(("End of block at %RRv size %d\n", pCurInstrGC, pCpu->cbInstr));
1661 pPatch->cbPatchBlockSize += pCpu->cbInstr;
1756 pPatch->pInstrGCHighest = pCurInstrGC + pCpu->cbInstr;
1866 pNextInstrGC = pCurInstrGC + pCpu->cbInstr;
1874 unsigned cbInstr;
1880 pNextInstrGC = pCurInstrGC + pCpu->cbInstr;
1890 disret = patmR3DisInstr(pVM, pPatch, pNextInstrGC, pNextInstrHC, PATMREAD_ORGCODE, &cpu, &cbInstr);
1897 pReturnInstrGC = pNextInstrGC + cbInstr;
1924 bool fGenerateJmpBack = (pCurInstrGC + pCpu->cbInstr - pInstrGC >= SIZEOF_NEARJUMP32);
1931 rc = patmPatchGenPopf(pVM, pPatch, pCurInstrGC + pCpu->cbInstr, !!(pCpu->fPrefix & DISPREFIX_OPSIZE), fGenerateJmpBack);
2105 RTRCPTR pNextInstrGC = pCurInstrGC + pCpu->cbInstr;
2129 && pCurInstrGC + pCpu->cbInstr - pInstrGC >= SIZEOF_NEARJUMP32
2134 RTRCPTR pNextInstrGC = pCurInstrGC + pCpu->cbInstr;
2137 Log(("patmRecompileCallback: end found for single instruction patch at %RRv cbInstr %d\n", pNextInstrGC, pCpu->cbInstr));
2261 uint32_t cbInstr, delta;
2281 &cpu, &cbInstr, szOutput, sizeof(szOutput));
2365 pCurInstrGC += cbInstr;
2430 uint32_t cbInstr;
2447 &cpu, &cbInstr, szOutput, sizeof(szOutput));
2450 disret = patmR3DisInstr(pVM, pPatch, pCurInstrGC, pCurInstrHC, PATMREAD_ORGCODE, &cpu, &cbInstr);
2473 RTRCPTR pNextInstrGC = pCurInstrGC + cbInstr;
2554 rc = patmRecompileCodeStream(pVM, pInstrGC, pCurInstrGC+cbInstr, pfnPATMR3Recompile, pCacheRec);
2603 pCurInstrGC += cbInstr;
2715 uint32_t cbInstr, i = 0;
2721 &cpu, &cbInstr, szOutput, sizeof(szOutput));
2726 Assert(cbInstr);
2727 i += cbInstr;
2740 &cpu, &cbInstr, szOutput, sizeof(szOutput));
2745 Assert(cbInstr);
2746 i += cbInstr;
3050 uint32_t cbInstr;
3063 disret = patmR3DisInstr(pVM, pPatch, pCurInstrGC, pCurInstrHC, PATMREAD_ORGCODE, &cpuPush, &cbInstr);
3069 pCurInstrGC += cbInstr;
3071 disret = patmR3DisInstr(pVM, pPatch, pCurInstrGC, pCurInstrHC, PATMREAD_ORGCODE, &cpuJmp, &cbInstr);
3659 uint32_t cbInstr;
3663 Assert((pCpu->pCurInstr->uOpcode == OP_CALL || pCpu->pCurInstr->uOpcode == OP_JMP) && pCpu->cbInstr == SIZEOF_NEARJUMP32);
3665 if ((pCpu->pCurInstr->uOpcode != OP_CALL && pCpu->pCurInstr->uOpcode != OP_JMP) || pCpu->cbInstr != SIZEOF_NEARJUMP32)
3694 disret = patmR3DisInstr(pVM, pPatch, pTargetGC, pTmpInstrHC, PATMREAD_ORGCODE, &cpu, &cbInstr);
3729 pPatch->pInstrGCHighest = pInstrGC + pCpu->cbInstr;
3774 if (patmPatchAddReloc32(pVM, pPatch, &pPB[pCpu->cbInstr - sizeof(RTRCPTR)], FIXUP_ABSOLUTE, pPatch->pPrivInstrGC,
3789 rc = PGMPhysSimpleDirtyWriteGCPtr(VMMGetCpu0(pVM), pInstrGC + pCpu->cbInstr - sizeof(RTRCPTR),
3825 uint32_t cbInstr;
3837 &cpu, &cbInstr);
3844 AssertMsg(cbInstr <= MAX_INSTR_SIZE, ("privileged instruction too big %d!!\n", cbInstr));
3845 if (cbInstr > MAX_INSTR_SIZE)
3851 if (patmPatchAddReloc32(pVM, pPatch, &pInstrHC[cpu.cbInstr - sizeof(RTRCPTR)], FIXUP_ABSOLUTE) != VINF_SUCCESS)
3857 *(RTRCPTR *)&pInstrHC[cpu.cbInstr - sizeof(RTRCPTR)] = pVM->patm.s.mmio.pCachedData;
3861 pPatch->pInstrGCHighest = pInstrGC + cpu.cbInstr;
3950 pPatch->pInstrGCHighest = pInstrGC + pCpu->cbInstr;
4012 Assert(pCpu->cbInstr == SIZEOF_NEARJUMP32 || pCpu->cbInstr == SIZEOF_NEAR_COND_JUMP32);
4013 if (pCpu->cbInstr != SIZEOF_NEARJUMP32 && pCpu->cbInstr != SIZEOF_NEAR_COND_JUMP32)
4016 if (PAGE_ADDRESS(pInstrGC) != PAGE_ADDRESS(pInstrGC + pCpu->cbInstr))
4031 Assert(pCpu->cbInstr <= sizeof(pPatch->aPrivInstr));
4032 Assert(pCpu->cbInstr >= SIZEOF_NEARJUMP32);
4033 pPatch->cbPatchJump = pCpu->cbInstr;
4043 RTRCPTR pJmpDest = patmR3GuestGCPtrToPatchGCPtrSimple(pVM, pInstrGC + pCpu->cbInstr + (int32_t)pCpu->Param1.uValue);
4045 AssertMsg(pJmpDest, ("patmR3GuestGCPtrToPatchGCPtrSimple failed for %RRv\n", pInstrGC + pCpu->cbInstr + (int32_t)pCpu->Param1.uValue));
4117 uint32_t cbInstr;
4360 disret = patmR3DisInstrNoStrOpMode(pVM, &pPatchRec->patch, pInstrGC, NULL, PATMREAD_ORGCODE, &cpu, &cbInstr);
4367 AssertMsg(cbInstr <= MAX_INSTR_SIZE, ("privileged instruction too big %d!!\n", cbInstr));
4368 if (cbInstr > MAX_INSTR_SIZE)
4371 pPatchRec->patch.cbPrivInstr = cbInstr;
4426 rc = patmIdtHandler(pVM, pInstrGC, cbInstr, pPatchRec, &cacheRec);
4502 rc = patmR3PatchBlock(pVM, pInstrGC, pInstrHC, cpu.pCurInstr->uOpcode, cbInstr, pPatchRec);
4620 uint32_t cbInstr;
4622 disret = patmR3DisInstr(pVM, pPatch, pInstrGC, pInstrHC, PATMREAD_ORGCODE | PATMREAD_NOCHECK, &cpu, &cbInstr);
4625 return cbInstr;
5380 uint32_t cbInstr;
5386 disret = patmR3DisInstr(pVM, &patch, pInstrGC, pInstrHC, PATMREAD_ORGCODE, &cpu, &cbInstr);
5529 uint32_t cbInstr;
5535 &cpu, &cbInstr, szOutput, sizeof(szOutput));
5537 i += cbInstr;
6189 cbDirty += CpuOld.cbInstr;
6209 pCurPatchInstrGC += CpuOld.cbInstr;
6210 cbDirty += CpuOld.cbInstr;
6255 && CpuNew.cbInstr <= cbLeft /* must still fit */
6267 rc = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), pCurPatchInstrHC, pCurInstrGC, CpuNew.cbInstr);
6288 pCurInstrGC += CpuNew.cbInstr;
6289 pCurPatchInstrHC += CpuNew.cbInstr;
6290 pCurPatchInstrGC += CpuNew.cbInstr;
6291 cbLeft -= CpuNew.cbInstr;
6574 uint32_t cbInstr;
6580 &cpu, &cbInstr);
6613 uint32_t cbInstr;
6619 &cpu, &cbInstr);
6626 &cpu, &cbInstr);