VirtualBox

Changeset 41730 in vbox


Ignore:
Timestamp:
Jun 14, 2012 11:28:16 PM (13 years ago)
Author:
vboxsync
Message:

DIS: Some nits.

Location:
trunk
Files:
4 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,
  • trunk/src/VBox/Disassembler/DisasmFormatYasm.cpp

    r41727 r41730  
    9191 * @param   pcchReg     Where to store the length of the name.
    9292 */
    93 static const char *disasmFormatYasmBaseReg(PCDISCPUSTATE pCpu, PCOP_PARAMETER pParam, size_t *pcchReg)
     93static const char *disasmFormatYasmBaseReg(PCDISCPUSTATE pCpu, PCDISOPPARAM pParam, size_t *pcchReg)
    9494{
    9595    switch (pParam->fUse & (  DISUSE_REG_GEN8 | DISUSE_REG_GEN16 | DISUSE_REG_GEN32 | DISUSE_REG_GEN64
     
    202202 * @param   pcchReg     Where to store the length of the name.
    203203 */
    204 static const char *disasmFormatYasmIndexReg(PCDISCPUSTATE pCpu, PCOP_PARAMETER pParam, size_t *pcchReg)
     204static const char *disasmFormatYasmIndexReg(PCDISCPUSTATE pCpu, PCDISOPPARAM pParam, size_t *pcchReg)
    205205{
    206206    switch (pCpu->addrmode)
     
    554554         * Formatting context and associated macros.
    555555         */
    556         PCOP_PARAMETER pParam = &pCpu->param1;
     556        PCDISOPPARAM pParam = &pCpu->param1;
    557557        int iParam = 1;
    558558
  • trunk/src/VBox/VMM/VMMAll/IOMAll.cpp

    r41727 r41730  
    6565 * @param   pcbSize             Where to store the size of data (1, 2, 4, 8).
    6666 */
    67 bool iomGetRegImmData(PDISCPUSTATE pCpu, PCOP_PARAMETER pParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize)
     67bool iomGetRegImmData(PDISCPUSTATE pCpu, PCDISOPPARAM pParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize)
    6868{
    6969    NOREF(pCpu);
     
    159159 * @param   u64Data             8/16/32/64 bit data to store.
    160160 */
    161 bool iomSaveDataToReg(PDISCPUSTATE pCpu, PCOP_PARAMETER pParam, PCPUMCTXCORE pRegFrame, uint64_t u64Data)
     161bool iomSaveDataToReg(PDISCPUSTATE pCpu, PCDISOPPARAM pParam, PCPUMCTXCORE pRegFrame, uint64_t u64Data)
    162162{
    163163    NOREF(pCpu);
  • trunk/src/VBox/VMM/include/IOMInternal.h

    r41692 r41730  
    431431
    432432/* Disassembly helpers used in IOMAll.cpp & IOMAllMMIO.cpp */
    433 bool    iomGetRegImmData(PDISCPUSTATE pCpu, PCOP_PARAMETER pParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize);
    434 bool    iomSaveDataToReg(PDISCPUSTATE pCpu, PCOP_PARAMETER pParam, PCPUMCTXCORE pRegFrame, uint64_t u32Data);
     433bool    iomGetRegImmData(PDISCPUSTATE pCpu, PCDISOPPARAM pParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize);
     434bool    iomSaveDataToReg(PDISCPUSTATE pCpu, PCDISOPPARAM pParam, PCPUMCTXCORE pRegFrame, uint64_t u32Data);
    435435
    436436RT_C_DECLS_END
Note: See TracChangeset for help on using the changeset viewer.

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