VirtualBox

Changeset 41706 in vbox


Ignore:
Timestamp:
Jun 14, 2012 12:33:12 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78514
Message:

dis.h: Drop the pragma pack(4) around DISOPCODE, it has no effect and only makes you think the structure is special. Use explicit packing instead.

Location:
trunk
Files:
2 edited

Legend:

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

    r41692 r41706  
    566566} DISCPUSTATE;
    567567
    568 /** The storage padding sufficient to hold the largest DISCPUSTATE in all
    569  * contexts (R3, R0 and RC). Used various places in the VMM internals.   */
    570 #define DISCPUSTATE_PADDING_SIZE    (HC_ARCH_BITS == 64 ? 0x1a0 : 0x180)
    571 
    572 /** Opcode. */
    573 #pragma pack(4)
     568
     569/**
     570 * Opcode descriptor.
     571 */
    574572typedef struct DISOPCODE
    575573{
     
    580578    uint8_t     idxParse2;
    581579    uint8_t     idxParse3;
     580    uint8_t     uUnused;
    582581    uint16_t    opcode;
    583582    uint16_t    param1;
     
    586585    uint32_t    optype;
    587586} DISOPCODE;
    588 #pragma pack()
    589587
    590588
  • trunk/src/VBox/Disassembler/DisasmInternal.h

    r41690 r41706  
    164164#ifndef DIS_CORE_ONLY
    165165# define OP(pszOpcode, idxParse1, idxParse2, idxParse3, opcode, param1, param2, param3, optype) \
    166     { pszOpcode, idxParse1, idxParse2, idxParse3, opcode, param1, param2, param3, optype }
     166    { pszOpcode, idxParse1, idxParse2, idxParse3, 0, opcode, param1, param2, param3, optype }
    167167#else
    168168# define OP(pszOpcode, idxParse1, idxParse2, idxParse3, opcode, param1, param2, param3, optype) \
    169     { idxParse1, idxParse2, idxParse3, opcode, param1, param2, param3, optype }
     169    { idxParse1, idxParse2, idxParse3, 0, opcode, param1, param2, param3, optype }
    170170#endif
    171171
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