VirtualBox

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


Ignore:
Timestamp:
Jun 12, 2012 8:16:31 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78481
Message:

DISCoreOne* -> DISCore*.

File:
1 edited

Legend:

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

    r41671 r41674  
    3535
    3636
    37 /** CPU mode flags (DISCPUSTATE::mode).
    38  * @{
    39  */
    40 typedef enum
     37/**
     38 * CPU mode flags (DISCPUSTATE::mode).
     39 */
     40typedef enum DISCPUMODE
    4141{
    42     CPUMODE_16BIT = 1,
    43     CPUMODE_32BIT = 2,
    44     CPUMODE_64BIT = 3,
     42    CPUMODE_INVALID = 0,
     43    CPUMODE_16BIT,
     44    CPUMODE_32BIT,
     45    CPUMODE_64BIT,
    4546    /** hack forcing the size of the enum to 32-bits. */
    4647    CPUMODE_MAKE_32BIT_HACK = 0x7fffffff
    4748} DISCPUMODE;
    48 /** @} */
    49 
    50 /** Prefix byte flags
     49
     50/** @name Prefix byte flags
    5151 * @{
    5252 */
    5353#define PREFIX_NONE                     0
    5454/** non-default address size. */
    55 #define PREFIX_ADDRSIZE                 RT_BIT(0)
     55#define PREFIX_ADDRSIZE                 UINT8_C(0x00)
    5656/** non-default operand size. */
    57 #define PREFIX_OPSIZE                   RT_BIT(1)
     57#define PREFIX_OPSIZE                   UINT8_C(0x01)
    5858/** lock prefix. */
    59 #define PREFIX_LOCK                     RT_BIT(2)
     59#define PREFIX_LOCK                     UINT8_C(0x02)
    6060/** segment prefix. */
    61 #define PREFIX_SEG                      RT_BIT(3)
     61#define PREFIX_SEG                      UINT8_C(0x04)
    6262/** rep(e) prefix (not a prefix, but we'll treat is as one). */
    63 #define PREFIX_REP                      RT_BIT(4)
     63#define PREFIX_REP                      UINT8_C(0x08)
    6464/** rep(e) prefix (not a prefix, but we'll treat is as one). */
    65 #define PREFIX_REPNE                    RT_BIT(5)
     65#define PREFIX_REPNE                    UINT8_C(0x10)
    6666/** REX prefix (64 bits) */
    67 #define PREFIX_REX                      RT_BIT(6)
    68 /** @} */
    69 
    70 /** 64 bits prefix byte flags
     67#define PREFIX_REX                      UINT8_C(0x20)
     68/** @} */
     69
     70/** @name 64 bits prefix byte flags
    7171 * @{
    7272 */
     
    9090/** @} */
    9191
    92 /**
    93  * Operand type.
     92/** @name Operand type.
     93 * @{
    9494 */
    9595#define OPTYPE_INVALID                  RT_BIT(0)
     
    119119#define OPTYPE_MOD_FIXED_11             RT_BIT(24)  /**< modrm.mod is always 11b */
    120120#define OPTYPE_FORCED_32_OP_SIZE_X86    RT_BIT(25)  /**< Forced 32 bits operand size; regardless of prefix bytes (only in 16 & 32 bits mode!) */
    121 #define OPTYPE_ALL                      (0xffffffff)
    122 
    123 /** Parameter usage flags.
     121#define OPTYPE_ALL                      UINT32_C(0xffffffff)
     122/** @}  */
     123
     124/** @name Parameter usage flags.
    124125 * @{
    125126 */
     
    507508    PFNDISPARSE    *pfnDisasmFnTable;
    508509    /** Internal: instruction filter */
    509     uint32_t        uFilter;
     510    uint32_t        fFilter;
    510511    /** Return code set by a worker function like the opcode bytes readers. */
    511512    int32_t         rc;
     
    558559                             PDISCPUSTATE pCpu, uint32_t *pcbInstr, char *pszOutput, size_t cbOutput);
    559560
    560 DISDECL(int) DISCoreOne(RTUINTPTR uInstrAddr, DISCPUMODE enmCpuMode, PDISCPUSTATE pCpu, uint32_t *pcbInstr);
    561 DISDECL(int) DISCoreOneWithReader(RTUINTPTR uInstrAddr, DISCPUMODE enmCpuMode, PFNDISREADBYTES pfnReadBytes, void *pvUser,
    562                                   PDISCPUSTATE pCpu, uint32_t *pcbInstr);
    563 DISDECL(int) DISCoreOneExEx(RTUINTPTR uInstrAddr, DISCPUMODE enmCpuMode, uint32_t uFilter,
    564                             PFNDISREADBYTES pfnReadBytes, void *pvUser,
    565                             PDISCPUSTATE pCpu, uint32_t *pcbInstr);
     561DISDECL(int) DISInstr(void const *pvInstr, DISCPUMODE enmCpuMode, PDISCPUSTATE pCpu, uint32_t *pcbInstr);
     562DISDECL(int) DISInstrWithReader(RTUINTPTR uInstrAddr, DISCPUMODE enmCpuMode, PFNDISREADBYTES pfnReadBytes, void *pvUser,
     563                                PDISCPUSTATE pCpu, uint32_t *pcbInstr);
     564DISDECL(int) DISInstEx(RTUINTPTR uInstrAddr, DISCPUMODE enmCpuMode, uint32_t uFilter,
     565                       PFNDISREADBYTES pfnReadBytes, void *pvUser,
     566                       PDISCPUSTATE pCpu, uint32_t *pcbInstr);
    566567
    567568DISDECL(int)        DISGetParamSize(PDISCPUSTATE pCpu, POP_PARAMETER pParam);
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