VirtualBox

Changeset 22932 in vbox


Ignore:
Timestamp:
Sep 10, 2009 11:22:27 PM (15 years ago)
Author:
vboxsync
Message:

VBox/uvm.h: For some reason AssertCompileMemberAlignment doesn't work with aCpus[]. Align UVMCPU better.

File:
1 edited

Legend:

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

    r22931 r22932  
    5050    /** The virtual CPU ID.  */
    5151    RTCPUID                         idCpu;
    52 #if HC_ARCH_BITS == 64
    5352    /** Alignment padding. */
    54     uint32_t                        u32Alignment0;
    55 #endif
     53    uint8_t                         abAlignment0[HC_ARCH_BITS == 32 ? 16 : 4];
    5654
    5755    /** The VM internal data. */
     
    6462    } vm;
    6563} UVMCPU;
    66 AssertCompileMemberAlignment(UVMCPU, vm, 8);
     64AssertCompileMemberAlignment(UVMCPU, vm, 32);
    6765
    6866
     
    136134AssertCompileMemberAlignment(UVM, pdm, 32);
    137135AssertCompileMemberAlignment(UVM, stam, 32);
    138 AssertCompileMemberAlignment(UVM, aCpus, 2);
    139 AssertCompileMemberAlignment(UVM, aCpus, 4);
    140 AssertCompileMemberAlignment(UVM, aCpus, 8);
    141 AssertCompileMemberAlignment(UVM, aCpus, 16);
    142136AssertCompileMemberAlignment(UVM, aCpus, 32);
    143 AssertCompileMemberAlignment(UVM, aCpus[1], 4);
    144 AssertCompileMemberAlignment(UVM, aCpus[1], 8);
    145137
    146138/** The UVM::u32Magic value (Brad Mehldau). */
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