VirtualBox

Changeset 7015 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 19, 2008 1:14:15 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28229
Message:

Cleaned up

File:
1 edited

Legend:

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

    r7000 r7015  
    4646    CPUMODE_16BIT = 1,
    4747    CPUMODE_32BIT = 2,
    48     CPUMODE_64BIT = 3
     48    CPUMODE_64BIT = 3,
     49    /** hack forcing the size of the enum to 32-bits. */
     50    CPUMODE_MAKE_32BIT_HACK = 0x7fffffff
    4951} DISCPUMODE;
    5052/** @} */
     
    370372{
    371373    /* Global setting */
    372     uint32_t        mode;
     374    DISCPUMODE      mode;
    373375
    374376    /* Per instruction prefix settings */
     
    379381    uint32_t        prefix_rex;
    380382    /** addressing mode (16 or 32 bits). (CPUMODE_*) */
    381     uint32_t        addrmode;
     383    DISCPUMODE      addrmode;
    382384    /** operand mode (16 or 32 bits). (CPUMODE_*) */
    383     uint32_t        opmode;
     385    DISCPUMODE      opmode;
    384386
    385387    OP_PARAMETER    param1;
     
    512514/**
    513515 * Parses one guest instruction.
    514  * * The result is found in pCpu and pcbInstruction.
     516 * The result is found in pCpu and pcbInstruction.
    515517 *
    516518 * @returns VBox status code.
    517519 * @param   InstructionAddr Address of the instruction to decode. What this means
    518520 *                          is left to the pfnReadBytes function.
    519  * @param   CpuMode         The CPU mode. CPUMODE_32BIT, CPUMODE_16BIT, or CPUMODE_64BIT.
     521 * @param   enmCpuMode      The CPU mode. CPUMODE_32BIT, CPUMODE_16BIT, or CPUMODE_64BIT.
    520522 * @param   pfnReadBytes    Callback for reading instruction bytes.
    521  * @param   pvUser          User argument for the instruction reader. (Ends up in dwUserData[0].)
     523 * @param   pvUser          User argument for the instruction reader. (Ends up in apvUserData[0].)
    522524 * @param   pCpu            Pointer to cpu structure. Will be initialized.
    523525 * @param   pcbInstruction  Where to store the size of the instruction.
    524526 *                          NULL is allowed.
    525527 */
    526 DISDECL(int) DISCoreOneEx(RTUINTPTR InstructionAddr, unsigned CpuMode, PFN_DIS_READBYTES pfnReadBytes, void *pvUser,
     528DISDECL(int) DISCoreOneEx(RTUINTPTR InstructionAddr, DISCPUMODE enmCpuMode, PFN_DIS_READBYTES pfnReadBytes, void *pvUser,
    527529                          PDISCPUSTATE pCpu, unsigned *pcbInstruction);
    528530
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