Searched defs:offInstr (Results 1 - 12 of 12) sorted by relevance

/vbox/src/VBox/Runtime/testcase/
H A DtstLdrDisasmTest.cpp85 static DECLCALLBACK(int) DisasmTest1ReadCode(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
88 if (cb + pDis->uInstrAddr + offInstr > sizeof(g_ab32BitCode))
90 memcpy(&pDis->abInstr[offInstr], &g_ab32BitCode[pDis->uInstrAddr + offInstr], cb);
91 pDis->cbCachedInstr = offInstr + (uint8_t)cb;
H A DtstLdr-3.cpp149 static DECLCALLBACK(int) MyReadBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
151 uint8_t const *pbSrc = (uint8_t const *)((uintptr_t)pDis->uInstrAddr + (uintptr_t)pDis->pvUser + offInstr);
152 memcpy(&pDis->abInstr[offInstr], pbSrc, cbMinRead);
153 pDis->cbCachedInstr = offInstr + cbMinRead;
/vbox/src/VBox/Disassembler/testcase/
H A DtstDisasm-1.cpp90 static DECLCALLBACK(int) testReadBytes(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
92 memcpy(&pDis->abInstr[offInstr], (void *)((uintptr_t)pDis->uInstrAddr + offInstr), cbMaxRead);
93 pDis->cbCachedInstr = offInstr + cbMaxRead;
H A DtstDisasm-2.cpp170 static DECLCALLBACK(int) MyDisasInstrRead(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
173 RTUINTPTR uSrcAddr = pState->Dis.uInstrAddr + offInstr;
182 memcpy(&pState->Dis.abInstr[offInstr], pState->pbNext, cbToRead);
183 pState->Dis.cbCachedInstr = offInstr + cbToRead;
197 memcpy(&pState->Dis.abInstr[offInstr], pState->pbNext, pState->cbLeft);
198 offInstr += (uint8_t)pState->cbLeft;
204 memset(&pState->Dis.abInstr[offInstr], 0xcc, cbMinRead);
213 memset(&pState->Dis.abInstr[offInstr], 0x90, cbMinRead);
216 pState->Dis.cbCachedInstr = offInstr + cbMinRead;
/vbox/src/VBox/VMM/VMMR3/
H A DDBGFDisas.cpp219 static DECLCALLBACK(int) dbgfR3DisasInstrRead(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
224 RTGCUINTPTR GCPtr = pDis->uInstrAddr + offInstr + pState->GCPtrSegBase;
264 if (!pState->f64Bits && pDis->uInstrAddr + offInstr > pState->cbSegLimit)
287 int rc = PATMR3ReadOrgInstr(pState->pVM, GCPtr, &pDis->abInstr[offInstr], cbRead, &cbRead);
293 pDis->cbCachedInstr = offInstr + (uint8_t)cbRead;
300 offInstr += (uint8_t)cbRead;
311 memcpy(&pDis->abInstr[offInstr], (char *)pState->pvPageR3 + (GCPtr & PAGE_OFFSET_MASK), cb);
312 offInstr += (uint8_t)cb;
315 pDis->cbCachedInstr = offInstr;
H A DCPUM.cpp1931 static DECLCALLBACK(int) cpumR3DisasInstrRead(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
1936 RTGCUINTPTR GCPtr = pDis->uInstrAddr + offInstr + pState->GCPtrSegBase;
1973 if (!pState->f64Bits && pDis->uInstrAddr + offInstr > pState->cbSegLimit)
1992 memcpy(&pDis->abInstr[offInstr], (uint8_t *)pState->pvPageR3 + (GCPtr & PAGE_OFFSET_MASK), cb);
1993 offInstr += (uint8_t)cb;
1996 pDis->cbCachedInstr = offInstr;
H A DCSAM.cpp750 static DECLCALLBACK(int) csamR3ReadBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
761 * could in fact probably skip this PATM call for offInstr != 0.
764 RTUINTPTR uSrcAddr = pDis->uInstrAddr + offInstr;
765 int rc = PATMR3ReadOrgInstr(pDisInfo->pVM, pDis->uInstrAddr + offInstr, &pDis->abInstr[offInstr], cbRead, &cbRead);
770 pDis->cbCachedInstr = offInstr + (uint8_t)cbRead;
776 offInstr += (uint8_t)cbRead;
786 memcpy(&pDis->abInstr[offInstr], &pDisInfo->pbSrcInstr[offInstr], cbMaxRead);
787 offInstr
[all...]
H A DPATM.cpp591 static DECLCALLBACK(int) patmReadBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
604 RTUINTPTR uSrcAddr = pDis->uInstrAddr + offInstr;
605 int rc = PATMR3ReadOrgInstr(pDisInfo->pVM, pDis->uInstrAddr + offInstr, &pDis->abInstr[offInstr], cbRead, &cbRead);
610 pDis->cbCachedInstr = offInstr + (uint8_t)cbRead;
616 offInstr += (uint8_t)cbRead;
624 Assert(PATMR3IsInsidePatchJump(pDisInfo->pVM, pDis->uInstrAddr + offInstr, NULL) == false);
625 Assert(PATMR3IsInsidePatchJump(pDisInfo->pVM, pDis->uInstrAddr + offInstr + cbMinRead-1, NULL) == false);
631 RTGCPTR32 uSrcAddr = (RTGCPTR32)pDis->uInstrAddr + offInstr;
637 rc = PGMPhysSimpleReadGCPtr(&pDisInfo->pVM->aCpus[0], &pDis->abInstr[offInstr], uSrcAdd
[all...]
/vbox/src/VBox/Disassembler/
H A DDisasmCore.cpp235 static DECLCALLBACK(int) disReadBytesDefault(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
240 RT_BZERO(&pDis->abInstr[offInstr], cbMaxRead);
241 pDis->cbCachedInstr = offInstr + cbMaxRead;
244 uint8_t const *pbSrc = (uint8_t const *)(uintptr_t)pDis->uInstrAddr + offInstr;
251 memcpy(&pDis->abInstr[offInstr], pbSrc, cbToRead);
252 pDis->cbCachedInstr = offInstr + cbToRead;
267 * @param offInstr The offset of the read request.
271 DECL_NO_INLINE(static, void) disReadMore(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMin) argument
273 Assert(cbMin + offInstr <= sizeof(pDis->abInstr));
279 if (offInstr < pDi
318 disReadByteSlow(PDISSTATE pDis, size_t offInstr) argument
342 disReadByte(PDISSTATE pDis, size_t offInstr) argument
359 disReadWordSlow(PDISSTATE pDis, size_t offInstr) argument
394 disReadWord(PDISSTATE pDis, size_t offInstr) argument
415 disReadDWordSlow(PDISSTATE pDis, size_t offInstr) argument
456 disReadDWord(PDISSTATE pDis, size_t offInstr) argument
478 disReadQWordSlow(PDISSTATE pDis, size_t offInstr) argument
541 disReadQWord(PDISSTATE pDis, size_t offInstr) argument
560 disParseInstruction(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis) argument
638 ParseEscFP(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
760 ParseSIB(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
791 ParseSIB_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
936 UseModRM(size_t const offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1129 QueryModRM(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1202 QueryModRM_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1265 ParseIllegal(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1273 ParseModRM(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1314 ParseModRM_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1357 ParseModFence(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1365 ParseImmByte(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1389 ParseImmByte_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1396 ParseImmByteSX(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1422 ParseImmByteSX_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1429 ParseImmUshort(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1439 ParseImmUshort_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1446 ParseImmUlong(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1456 ParseImmUlong_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1463 ParseImmQword(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1473 ParseImmQword_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1480 ParseImmV(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1506 ParseImmV_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1517 ParseImmZ(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1546 ParseImmZ_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1558 ParseImmBRel(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1569 ParseImmBRel_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1577 ParseImmVRel(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1605 ParseImmVRel_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1615 ParseImmAddr(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1678 ParseImmAddr_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1698 ParseImmAddrF(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1722 ParseImmAddrF_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
1734 ParseFixedReg(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) argument
[all...]
/vbox/src/VBox/Devices/BiosCommonCode/
H A DMakeAlternativeSource.cpp924 static DECLCALLBACK(int) disReadOpcodeBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
926 RTUINTPTR offBios = pDis->uInstrAddr + offInstr - g_uBiosFlatBase;
935 memcpy(&pDis->abInstr[offInstr], &g_pbImg[offBios], cbToRead);
936 pDis->cbCachedInstr = (uint8_t)(offInstr + cbToRead);
/vbox/src/VBox/VMM/VMMAll/
H A DEMAll.cpp338 static DECLCALLBACK(int) emReadBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) argument
344 RTUINTPTR uSrcAddr = pDis->uInstrAddr + offInstr;
363 memcpy(&pDis->abInstr[offInstr], (void *)(uintptr_t)uSrcAddr, cbToRead);
365 memcpy(&pDis->abInstr[offInstr], PATMR3GCPtrToHCPtr(pVCpu->CTX_SUFF(pVM), uSrcAddr), cbToRead);
378 rc = MMGCRamRead(pVCpu->pVMRC, &pDis->abInstr[offInstr], (void *)(uintptr_t)uSrcAddr, cbToRead);
382 rc = MMGCRamRead(pVCpu->pVMRC, &pDis->abInstr[offInstr], (void *)(uintptr_t)uSrcAddr, cbToRead);
387 rc = PGMPhysSimpleReadGCPtr(pVCpu, &pDis->abInstr[offInstr], uSrcAddr, cbToRead);
393 rc = PGMPhysSimpleReadGCPtr(pVCpu, &pDis->abInstr[offInstr], uSrcAddr, cbToRead);
415 pDis->cbCachedInstr = offInstr + (uint8_t)cbToRead;
/vbox/src/VBox/ValidationKit/utils/cpu/
H A Dcidet.h1021 uint16_t offInstr; member in struct:CIDETCORE

Completed in 107 milliseconds