VirtualBox

Ignore:
Timestamp:
Nov 19, 2018 6:26:59 PM (6 years ago)
Author:
vboxsync
Message:

VMMDev: Alignment fixes. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r75585 r75590  
    113113
    114114
    115 /** device structure containing all state information */
     115/**
     116 * State structure for the VMM device.
     117 */
    116118typedef struct VMMDevState
    117119{
     
    199201    /** R0 pointer to VMMDev RAM area - first page only, could be NULL! */
    200202    RCPTRTYPE(VMMDevMemory *)   pVMMDevRAMRC;
    201     RTGCPTR                     RCPtrAlignment3b;
     203    RTRCPTR                     RCPtrAlignment3b;
    202204
    203205    /** R3 pointer to VMMDev Heap RAM area. */
     
    241243    R3PTRTYPE(VMMDEVCREDS *) pCredentials;
    242244
    243     bool afAlignment4[HC_ARCH_BITS == 32 ? 3 : 7];
     245#if HC_ARCH_BITS == 32
     246    uint32_t uAlignment4;
     247#endif
    244248
    245249    /* memory balloon change request */
     
    267271    uint64_t hostTime;
    268272    bool fTimesyncBackdoorLo;
    269     bool afAlignment6[3];
     273    bool afAlignment6[2];
     274#else
     275    bool afAlignment6[1+2];
    270276#endif
    271277    /** Set if GetHostTime should fail.
     
    290296    /** Number of additional cores to keep around. */
    291297    uint32_t cGuestCoreDumps;
    292 
    293     bool afAlignment7[1];
    294298
    295299#ifdef VBOX_WITH_HGCM
     
    412416typedef VMMDEV *PVMMDEV;
    413417AssertCompileMemberAlignment(VMMDEV, CritSect, 8);
     418AssertCompileMemberAlignment(VMMDEV, StatSlowIrqAck, 8);
    414419AssertCompileMemberAlignment(VMMDEV, cbGuestRAM, 8);
    415420AssertCompileMemberAlignment(VMMDEV, enmCpuHotPlugEvent, 4);
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