VirtualBox

Changeset 161 in vbox for trunk/src/VBox/VMM/REMInternal.h


Ignore:
Timestamp:
Jan 18, 2007 6:25:45 PM (18 years ago)
Author:
vboxsync
Message:

64-bit: structure alignment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/REMInternal.h

    r119 r161  
    116116{
    117117    RTHCUINTPTR pChunk1;
     118    RTHCUINTPTR pChunk2;
    118119    RTGCPHYS    GCPhys1;
    119     RTHCUINTPTR pChunk2;
    120120    RTGCPHYS    GCPhys2;
    121121} REMCHUNKINFO, *PREMCHUNKINFO;
     
    129129typedef struct REMPHYSREGISTRATION
    130130{
     131    RTHCUINTPTR     HCVirt;
    131132    RTGCPHYS        GCPhys;
    132     RTHCUINTPTR     HCVirt;
    133133    RTUINT          cb;
    134134} REMPHYSREGISTRATION, *PREMPHYSREGISTRATION;
     
    177177     * These instructions are replayed when entering REM. */
    178178    RTGCPTR                 aGCPtrInvalidatedPages[48];
    179 
    180179    /** The number of recorded handler notifications. */
    181180    RTUINT volatile         cHandlerNotifications;
     181    RTUINT                  padding0; /**< Padding. */
    182182    /** Array of recorded handler noticications.
    183183     * These are replayed when entering REM. */
     
    185185
    186186    /** Pointer to an array of hc virt to gc phys records. */
    187     PREMCHUNKINFO          paHCVirtToGCPhys;
     187    HCPTRTYPE(PREMCHUNKINFO) paHCVirtToGCPhys;
    188188    /** Pointer to a GC Phys to HC Virt lookup table. */
    189     RTHCUINTPTR            *paGCPhysToHCVirt;
    190 
    191     /** Number of external RAM and ROM registrations (excluding guest RAM) */
     189    HCPTRTYPE(PRTHCUINTPTR) paGCPhysToHCVirt;
     190
     191    /** Array of external RAM and ROM registrations (excluding guest RAM). */
     192    REMPHYSREGISTRATION     aPhysReg[REM_MAX_PHYS_REGISTRATIONS];
     193    /** Number of external RAM and ROM registrations (excluding guest RAM). */
    192194    RTUINT                  cPhysRegistrations;
    193     REMPHYSREGISTRATION     aPhysReg[REM_MAX_PHYS_REGISTRATIONS];
    194195
    195196    /** MMIO memory type.
     
    213214
    214215    /** Padding for MS / GC alignment difference. */
    215     //uint32_t                u32Padding;
     216    uint32_t                u32Padding;
    216217    /** Time spent in QEMU. */
    217218    STAMPROFILEADV          StatsInQEMU;
     
    223224    STAMPROFILE             StatsStateBack;
    224225
     226#if HC_ARCH_BITS != 32
    225227    /** Padding the CPUX86State structure to 32 byte. */
    226     uint8_t                 abPadding[8];
     228    uint32_t                abPadding[HC_ARCH_BITS == 32 ? 0 : 6];
     229#endif
    227230
    228231#define REM_ENV_SIZE        (HC_ARCH_BITS == 32 ? 0x6440 : 0xb4a0)
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