~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to include/VBox/dis.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
#define OPTYPE_COND_CONTROLFLOW         RT_BIT(10)
109
109
#define OPTYPE_INTERRUPT                RT_BIT(11)
110
110
#define OPTYPE_ILLEGAL                  RT_BIT(12)
111
 
#define OPTYPE_RRM_DANGEROUS            RT_BIT(14)  /**< Some additional dangerouse ones when recompiling raw r0. */
112
 
#define OPTYPE_RRM_DANGEROUS_16         RT_BIT(15)  /**< Some additional dangerouse ones when recompiling 16-bit raw r0. */
 
111
#define OPTYPE_RRM_DANGEROUS            RT_BIT(14)  /**< Some additional dangerous ones when recompiling raw r0. */
 
112
#define OPTYPE_RRM_DANGEROUS_16         RT_BIT(15)  /**< Some additional dangerous ones when recompiling 16-bit raw r0. */
113
113
#define OPTYPE_RRM_MASK                 (OPTYPE_RRM_DANGEROUS | OPTYPE_RRM_DANGEROUS_16)
114
114
#define OPTYPE_INHIBIT_IRQS             RT_BIT(16)  /**< Will or can inhibit irqs (sti, pop ss, mov ss) */
115
115
#define OPTYPE_PORTIO_READ              RT_BIT(17)
545
545
 * @returns VBox error code
546
546
 * @param   pCpu            Pointer to cpu structure which have DISCPUSTATE::mode
547
547
 *                          set correctly.
548
 
 * @param   pvCodeBlock     Pointer to the strunction to disassemble.
 
548
 * @param   pvCodeBlock     Pointer to the structure to disassemble.
549
549
 * @param   cbMax           Maximum number of bytes to disassemble.
550
550
 * @param   pcbSize         Where to store the size of the instruction.
551
551
 *                          NULL is allowed.
553
553
 *
554
554
 * @todo    Define output callback.
555
555
 * @todo    Using signed integers as sizes is a bit odd. There are still
556
 
 *          some GCC warnings about mixing signed and unsigend integers.
 
556
 *          some GCC warnings about mixing signed and unsigned integers.
557
557
 * @todo    Need to extend this interface to include a code address so we
558
 
 *          can dissassemble GC code. Perhaps a new function is better...
559
 
 * @remark  cbMax isn't respected as a boundry. DISInstr() will read beyond cbMax.
 
558
 *          can disassemble GC code. Perhaps a new function is better...
 
559
 * @remark  cbMax isn't respected as a boundary. DISInstr() will read beyond cbMax.
560
560
 *          This means *pcbSize >= cbMax sometimes.
561
561
 */
562
562
DISDECL(int) DISBlock(PDISCPUSTATE pCpu, RTUINTPTR pvCodeBlock, unsigned cbMax, unsigned *pSize);
583
583
 * @returns VBox error code
584
584
 * @param   pCpu            Pointer to cpu structure which have DISCPUSTATE::mode
585
585
 *                          set correctly.
586
 
 * @param   pu8Instruction  Pointer to the strunction to disassemble.
 
586
 * @param   pu8Instruction  Pointer to the structure to disassemble.
587
587
 * @param   u32EipOffset    Offset to add to instruction address to get the real virtual address
588
588
 * @param   pcbSize         Where to store the size of the instruction.
589
589
 *                          NULL is allowed.