VirtualBox

Changeset 39138 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 28, 2011 2:29:51 PM (13 years ago)
Author:
vboxsync
Message:

iprt/types.h,IEM: Moved the pointer union types to iprt/types.h, adding volatile versions of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r39127 r39138  
    6969*   Structures and Typedefs                                                    *
    7070*******************************************************************************/
    71 /**
    72  * Generic pointer union.
    73  * @todo move me to iprt/types.h
    74  */
    75 typedef union RTPTRUNION
    76 {
    77     /** Pointer into the void... */
    78     void        *pv;
    79     /** Pointer to a 8-bit unsigned value. */
    80     uint8_t     *pu8;
    81     /** Pointer to a 16-bit unsigned value. */
    82     uint16_t    *pu16;
    83     /** Pointer to a 32-bit unsigned value. */
    84     uint32_t    *pu32;
    85     /** Pointer to a 64-bit unsigned value. */
    86     uint64_t    *pu64;
    87 } RTPTRUNION;
    88 /** Pointer to a pointer union. */
    89 typedef RTPTRUNION *PRTPTRUNION;
    90 
    91 /**
    92  * Generic const pointer union.
    93  * @todo move me to iprt/types.h
    94  */
    95 typedef union RTCPTRUNION
    96 {
    97     /** Pointer into the void... */
    98     void const       *pv;
    99     /** Pointer to a 8-bit unsigned value. */
    100     uint8_t const     *pu8;
    101     /** Pointer to a 16-bit unsigned value. */
    102     uint16_t const    *pu16;
    103     /** Pointer to a 32-bit unsigned value. */
    104     uint32_t const    *pu32;
    105     /** Pointer to a 64-bit unsigned value. */
    106     uint64_t const    *pu64;
    107 } RTCPTRUNION;
    108 /** Pointer to a const pointer union. */
    109 typedef RTCPTRUNION *PRTCPTRUNION;
    110 
    11171/** @typedef PFNIEMOP
    11272 * Pointer to an opcode decoder function.
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