VirtualBox

Changeset 41730 in vbox for trunk/include/VBox/dis.h


Ignore:
Timestamp:
Jun 14, 2012 11:28:16 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78538
Message:

DIS: Some nits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/dis.h

    r41729 r41730  
    487487typedef DISOPPARAM *PDISOPPARAM;
    488488/** Pointer to opcode parameter. */
    489 typedef const DISOPPARAM *PCOP_PARAMETER;
    490 
    491 
     489typedef const DISOPPARAM *PCDISOPPARAM;
     490
     491
     492/**
     493 * Opcode descriptor.
     494 */
     495typedef struct DISOPCODE
     496{
     497#ifndef DIS_CORE_ONLY
     498    const char  *pszOpcode;
     499#endif
     500    uint8_t     idxParse1;
     501    uint8_t     idxParse2;
     502    uint8_t     idxParse3;
     503    uint8_t     uUnused;
     504    uint16_t    opcode;
     505    uint16_t    param1;
     506    uint16_t    param2;
     507    uint16_t    param3;
     508    uint32_t    optype;
     509} DISOPCODE;
    492510/** Pointer to const opcode. */
    493511typedef const struct DISOPCODE *PCDISOPCODE;
     512
    494513
    495514/**
     
    511530 * @remark no DECLCALLBACK() here because it's considered to be internal (really, I'm too lazy to update all the functions). */
    512531typedef unsigned FNDISPARSE(RTUINTPTR pu8CodeBlock, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu);
     532/** Pointer to a disassembler parser function. */
    513533typedef FNDISPARSE *PFNDISPARSE;
     534/** Pointer to a const disassembler parser function pointer. */
    514535typedef PFNDISPARSE const *PCPFNDISPARSE;
    515536
     537/**
     538 * The diassembler state and result.
     539 */
    516540typedef struct DISCPUSTATE
    517541{
     
    614638
    615639
    616 /**
    617  * Opcode descriptor.
    618  */
    619 typedef struct DISOPCODE
    620 {
    621 #ifndef DIS_CORE_ONLY
    622     const char  *pszOpcode;
    623 #endif
    624     uint8_t     idxParse1;
    625     uint8_t     idxParse2;
    626     uint8_t     idxParse3;
    627     uint8_t     uUnused;
    628     uint16_t    opcode;
    629     uint16_t    param1;
    630     uint16_t    param2;
    631     uint16_t    param3;
    632     uint32_t    optype;
    633 } DISOPCODE;
    634 
    635640
    636641DISDECL(int) DISInstrToStr(void const *pvInstr, DISCPUMODE enmCpuMode,
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