VirtualBox

Changeset 41671 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Jun 12, 2012 3:22:43 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78478
Message:

DISInstr* -> DISInstrToStr + cbOutput argument.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/PATMInternal.h

    r41658 r41671  
    678678
    679679
    680 #ifndef IN_RC
    681 
    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 disassembly
    688  */
    689 typedef struct
    690 {
    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 
    714680RT_C_DECLS_BEGIN
    715681/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette