Lines Matching defs:pCpu
619 * @param pCpu CPU disassembly state
625 typedef int (VBOXCALL *PFN_PATMR3ANALYSE)(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec);
627 int patmR3InstallGuestSpecificPatch(PVM pVM, PDISCPUSTATE pCpu, RTRCPTR pInstrGC, uint8_t *pInstrHC, PPATMPATCHREC pPatchRec);
632 int patmR3PatchInstrInt3(PVM pVM, RTRCPTR pInstrGC, R3PTRTYPE(uint8_t *) pInstrHC, DISCPUSTATE *pCpu, PPATCHINFO pPatch);
657 * @param pCpu Disassembly state of instruction.
660 DECLINLINE(RTRCPTR) PATMResolveBranch(PDISCPUSTATE pCpu, RTRCPTR pBranchInstrGC)
663 if (pCpu->Param1.fUse & DISUSE_IMMEDIATE8_REL)
665 disp = (int32_t)(char)pCpu->Param1.uValue;
668 if (pCpu->Param1.fUse & DISUSE_IMMEDIATE16_REL)
670 disp = (int32_t)(uint16_t)pCpu->Param1.uValue;
673 if (pCpu->Param1.fUse & DISUSE_IMMEDIATE32_REL)
675 disp = (int32_t)pCpu->Param1.uValue;
679 Log(("We don't support far jumps here!! (%08X)\n", pCpu->Param1.fUse));
683 return (RTRCPTR)((uint8_t *)pBranchInstrGC + pCpu->cbInstr + disp);
685 return pBranchInstrGC + pCpu->cbInstr + disp;
690 int patmr3DisasmCallback(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec);