VirtualBox

Changeset 41760 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 15, 2012 3:56:20 PM (13 years ago)
Author:
vboxsync
Message:

DIS: Chagned FNDISREADBYTES to permit reading more bytes that the immeidate request. Not using the read-ahead feature in any important code path yet, that's comming next, bit by bit.

File:
1 edited

Legend:

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

    r41747 r41760  
    497497
    498498/**
    499  * Callback for reading opcode bytes.
    500  *
    501  * @param   pDisState       Pointer to the CPU state.  The primary user argument
    502  *                          can be retrived from DISCPUSTATE::pvUser. If
    503  *                          more is required these can be passed in the
    504  *                          subsequent slots.
    505  * @param   pbDst           Pointer to output buffer.
    506  * @param   uSrcAddr        The address to start reading at.
    507  * @param   cbToRead        The number of bytes to read.
    508  */
    509 typedef DECLCALLBACK(int) FNDISREADBYTES(PDISCPUSTATE pDisState, uint8_t *pbDst, RTUINTPTR uSrcAddr, uint32_t cbToRead);
     499 * Callback for reading instruction bytes.
     500 *
     501 * @returns VBox status code, bytes in DISCPUSTATE::abInstr and byte count in
     502 *          DISCPUSTATE::cbCachedInstr.
     503 * @param   pDis            Pointer to the disassembler state.  The user
     504 *                          argument can be found in DISCPUSTATE::pvUser if
     505 *                          needed.
     506 * @param   offInstr        The offset relative to the start of the instruction.
     507 *
     508 *                          To get the source address, add this to
     509 *                          DISCPUSTATE::uInstrAddr.
     510 *
     511 *                          To calculate the destination buffer address, use it
     512 *                          as an index into DISCPUSTATE::abInstr.
     513 *
     514 * @param   cbMinRead       The minimum number of bytes to read.
     515 * @param   cbMaxRead       The maximum number of bytes that may be read.
     516 */
     517typedef DECLCALLBACK(int) FNDISREADBYTES(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead);
    510518/** Pointer to a opcode byte reader. */
    511519typedef FNDISREADBYTES *PFNDISREADBYTES;
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