VirtualBox

Changeset 7050 in vbox


Ignore:
Timestamp:
Feb 20, 2008 4:21:25 PM (17 years ago)
Author:
vboxsync
Message:

Realigning after RTGCPHYS change.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r7040 r7050  
    368368{
    369369    AVLROGCPHYSNODECORE                 Core;
    370     /** Alignment padding. */
    371     uint32_t                            u32Padding;
    372370    /** Access type. */
    373371    PGMPHYSHANDLERTYPE                  enmType;
     
    897895    /** Pointer to the next RAM range - for GC. */
    898896    GCPTRTYPE(struct PGMRAMRANGE *)     pNextGC;
     897#if GC_ARCH_BITS == 32
     898    RTGCPTR                             GCPtrAlignment; /**< Pointer alignment. */
     899#endif
    899900    /** Start of the range. Page aligned. */
    900901    RTGCPHYS                            GCPhys;
     
    920921#ifdef VBOX_WITH_NEW_PHYS_CODE
    921922    /** Padding to make aPage aligned on sizeof(PGMPAGE). */
    922     uint32_t                            au32Reserved[2];
     923    uint32_t                            au32Reserved[1];
    923924#else
    924925# if HC_ARCH_BITS == 32 && !defined(RT_OS_WINDOWS)
    925926    /** Padding to make aPage aligned on sizeof(PGMPAGE). */
    926     uint32_t                            u32Reserved[2];
     927    uint32_t                            u32Reserved[1];
    927928# endif
    928929#endif
     
    982983    /** Pointer to the next range - R0. */
    983984    GCPTRTYPE(struct PGMROMRANGE *) pNextGC;
     985#if GC_ARCH_BITS == 32
     986    RTGCPTR                         GCPtrAlignment; /**< Pointer alignment. */
     987#endif
    984988    /** Address of the range. */
    985989    RTGCPHYS                        GCPhys;
     
    11181122    /** Address of the page. */
    11191123    RTGCPHYS volatile                    GCPhys;
    1120 #if HC_ARCH_BITS == 64
    1121     uint32_t                             u32Padding; /**< alignment padding. */
    1122 #endif
    11231124    /** The guest page. */
    11241125    R3R0PTRTYPE(PPGMPAGE) volatile       pPage;
     
    11271128    /** The address */
    11281129    R3R0PTRTYPE(void *) volatile         pv;
     1130#if HC_ARCH_BITS == 32
     1131    uint32_t                             u32Padding; /**< alignment padding. */
     1132#endif
    11291133} PGMPAGER3MAPTLBE;
    11301134/** Pointer to an entry in the HC physical TLB. */
     
    13791383     */
    13801384    bool                fCR3Mix;
    1381 #if HC_ARCH_BITS == 64 || GC_ARCH_BITS == 64
    1382     bool                Alignment[4];   /**< Align the structure size on a 64-bit boundrary. */
    1383 #endif
     1385//#if HC_ARCH_BITS == 64 || GC_ARCH_BITS == 64
     1386//    bool                Alignment[4];   /**< Align the structure size on a 64-bit boundrary. */
     1387//#endif
    13841388} PGMPOOLPAGE, *PPGMPOOLPAGE, **PPPGMPOOLPAGE;
    13851389
     
    18381842     * are used of the PDs in PAE mode. */
    18391843    RTGCPTR                     GCPtrCR3Mapping;
     1844#if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32
     1845    RTGCPTR                     GCPtrPadding0; /**< alignment padding. */
     1846#endif
    18401847    /** The physical address of the currently monitored guest CR3 page.
    18411848     * When this value is NIL_RTGCPHYS no page is being monitored. */
    18421849    RTGCPHYS                    GCPhysGstCR3Monitored;
    1843 #if HC_ARCH_BITS == 64 || GC_ARCH_BITS == 64
    1844     RTGCPHYS                    GCPhysPadding0; /**< alignment padding. */
    1845 #endif
    18461850
    18471851    /** @name 32-bit Guest Paging.
     
    21232127    RTUINT                          fSyncFlags;
    21242128
    2125 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32
    2126     RTUINT                          uPadding3; /**< alignment padding. */
    2127 #endif
    21282129    /** PGM critical section.
    21292130     * This protects the physical & virtual access handlers, ram ranges,
  • trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp

    r6913 r7050  
    509509    GEN_CHECK_SIZE(PGMPHYSHANDLER);
    510510    GEN_CHECK_OFF(PGMPHYSHANDLER, Core);
     511    GEN_CHECK_SIZE(((PPGMPHYSHANDLER)0)->Core);
    511512    GEN_CHECK_OFF(PGMPHYSHANDLER, enmType);
    512513    GEN_CHECK_OFF(PGMPHYSHANDLER, cPages);
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