Changeset 41671 in vbox for trunk/src/VBox/VMM/include
- Timestamp:
- Jun 12, 2012 3:22:43 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78478
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/include/PATMInternal.h
r41658 r41671 678 678 679 679 680 #ifndef IN_RC681 682 #define PATMREAD_RAWCODE 1 /* read code as-is */683 #define PATMREAD_ORGCODE 2 /* read original guest opcode bytes; not the patched bytes */684 #define PATMREAD_NOCHECK 4 /* don't check for patch conflicts */685 686 /*687 * Private structure used during disassembly688 */689 typedef struct690 {691 PVM pVM;692 PPATCHINFO pPatchInfo;693 R3PTRTYPE(uint8_t *) pInstrHC;694 RTRCPTR pInstrGC;695 uint32_t fReadFlags;696 } PATMDISASM, *PPATMDISASM;697 698 DECLINLINE(bool) PATMR3DISInstr(PVM pVM, PPATCHINFO pPatch, PDISCPUSTATE pCpu, RTRCPTR InstrGC,699 uint8_t *InstrHC, uint32_t *pOpsize, char *pszOutput,700 uint32_t fReadFlags = PATMREAD_ORGCODE)701 {702 PATMDISASM disinfo;703 disinfo.pVM = pVM;704 disinfo.pPatchInfo = pPatch;705 disinfo.pInstrHC = InstrHC;706 disinfo.pInstrGC = InstrGC;707 disinfo.fReadFlags = fReadFlags;708 (pCpu)->pfnReadBytes = patmReadBytes;709 (pCpu)->apvUserData[0] = &disinfo;710 return RT_SUCCESS(DISInstrWithReader(InstrGC, pCpu->mode, patmReadBytes, &disinfo, pCpu, pOpsize, pszOutput));711 }712 #endif /* !IN_RC */713 714 680 RT_C_DECLS_BEGIN 715 681 /**
Note:
See TracChangeset
for help on using the changeset viewer.