VirtualBox

Ignore:
Timestamp:
Oct 16, 2009 10:12:31 AM (15 years ago)
Author:
vboxsync
Message:

DevLsiLogicSCSI,tstDeviceStructSize: Critical section realigning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp

    r22963 r23814  
    3535#undef LOG_GROUP
    3636#include "../Input/DevPS2.cpp"
     37#ifdef VBOX_WITH_E1000
     38# undef LOG_GROUP
     39# include "../Network/DevE1000.cpp"
     40#endif
    3741#undef LOG_GROUP
    3842#include "../Network/DevPCNet.cpp"
     43#ifdef VBOX_WITH_VIRTIO
     44# undef LOG_GROUP
     45# include "../Network/DevVirtio.cpp"
     46#endif
    3947#undef LOG_GROUP
    4048#include "../PC/DevACPI.cpp"
     
    4755#undef LOG_GROUP
    4856#include "../PC/DevAPIC.cpp"
     57#ifdef VBOX_WITH_HPET
     58# undef LOG_GROUP
     59# include "../PC/DevHPET.cpp"
     60#endif
     61#ifdef VBOX_WITH_LPC
     62# undef LOG_GROUP
     63# include "../PC/DevLPC.cpp"
     64#endif
     65#ifdef VBOX_WITH_SMC
     66# undef LOG_GROUP
     67# include "../PC/DevSMC.cpp"
     68#endif
    4969#undef LOG_GROUP
    5070#include "../Storage/DevATA.cpp"
     
    6484# include "../Storage/DevAHCI.cpp"
    6585#endif
    66 #ifdef VBOX_WITH_E1000
    67 # undef LOG_GROUP
    68 # include "../Network/DevE1000.cpp"
    69 #endif
    7086#ifdef VBOX_WITH_BUSLOGIC
    7187# undef LOG_GROUP
     
    7591# undef LOG_GROUP
    7692# include "../Storage/DevLsiLogicSCSI.cpp"
    77 #endif
    78 #ifdef VBOX_WITH_HPET
    79 # undef LOG_GROUP
    80 # include "../PC/DevHPET.cpp"
    81 #endif
    82 #ifdef VBOX_WITH_LPC
    83 # undef LOG_GROUP
    84 # include "../PC/DevLPC.cpp"
    85 #endif
    86 #ifdef VBOX_WITH_SMC
    87 # undef LOG_GROUP
    88 # include "../PC/DevSMC.cpp"
    8993#endif
    9094
     
    243247    CHECK_SIZE(int8_t, 8/8);
    244248
    245     /*
    246      * Misc alignment checks.
    247      */
     249    /* Basic alignment checks. */
    248250    CHECK_MEMBER_ALIGNMENT(PDMDEVINS, achInstanceData, 64);
    249251    CHECK_MEMBER_ALIGNMENT(PCIDEVICE, Int.s, 16);
    250252    CHECK_MEMBER_ALIGNMENT(PCIDEVICE, Int.s.aIORegions, 16);
    251     CHECK_MEMBER_ALIGNMENT(PCIBUS, devices, 16);
    252     CHECK_MEMBER_ALIGNMENT(PCIGLOBALS, pci_irq_levels, 16);
    253     CHECK_MEMBER_ALIGNMENT(PCNetState, u64LastPoll, 8);
    254     CHECK_MEMBER_ALIGNMENT(VGASTATE, Dev, 8);
    255     CHECK_MEMBER_ALIGNMENT(VGASTATE, StatRZMemoryRead, 8);
     253
     254    /*
     255     * Misc alignment checks (keep this somewhat alphabetical).
     256     */
     257    CHECK_MEMBER_ALIGNMENT(AHCI, lock, 8);
     258    CHECK_MEMBER_ALIGNMENT(AHCIATACONTROLLER, lock, 8);
     259    CHECK_MEMBER_ALIGNMENT(AHCIATACONTROLLER, StatAsyncOps, 8);
    256260#ifdef VBOX_WITH_STATISTICS
    257 //    CHECK_MEMBER_ALIGNMENT(PCNetState, StatMMIOReadGC, 8);
    258     CHECK_MEMBER_ALIGNMENT(DEVPIC, StatSetIrqGC, 8);
    259261    CHECK_MEMBER_ALIGNMENT(APICDeviceInfo, StatMMIOReadGC, 8);
    260     CHECK_MEMBER_ALIGNMENT(IOAPICState, StatMMIOReadGC, 8);
    261     CHECK_MEMBER_ALIGNMENT(IOAPICState, StatMMIOReadGC, 8);
    262 #endif
    263     CHECK_MEMBER_ALIGNMENT(PITState, StatPITIrq, 8);
     262#endif
    264263    CHECK_MEMBER_ALIGNMENT(ATADevState, cTotalSectors, 8);
    265264    CHECK_MEMBER_ALIGNMENT(ATADevState, StatATADMA, 8);
    266265    CHECK_MEMBER_ALIGNMENT(ATADevState, StatReads, 8);
     266    CHECK_MEMBER_ALIGNMENT(ATACONTROLLER, lock, 8);
    267267    CHECK_MEMBER_ALIGNMENT(ATACONTROLLER, StatAsyncOps, 8);
     268    CHECK_MEMBER_ALIGNMENT(DEVPARALLELSTATE, CritSect, 8);
     269#ifdef VBOX_WITH_STATISTICS
     270    CHECK_MEMBER_ALIGNMENT(DEVPIC, StatSetIrqGC, 8);
     271#endif
     272    CHECK_MEMBER_ALIGNMENT(E1KSTATE, cs, 8);
     273    CHECK_MEMBER_ALIGNMENT(E1KSTATE, csRx, 8);
     274    //CHECK_MEMBER_ALIGNMENT(E1KSTATE, csTx, 8);
     275#ifdef VBOX_WITH_USB
     276    CHECK_MEMBER_ALIGNMENT(EHCI, RootHub, 8);
     277# ifdef VBOX_WITH_STATISTICS
     278    CHECK_MEMBER_ALIGNMENT(EHCI, StatCanceledIsocUrbs, 8);
     279# endif
     280#endif
     281#ifdef VBOX_WITH_STATISTICS
     282    CHECK_MEMBER_ALIGNMENT(IOAPICState, StatMMIOReadGC, 8);
     283    CHECK_MEMBER_ALIGNMENT(IOAPICState, StatMMIOReadGC, 8);
     284#endif
     285    CHECK_MEMBER_ALIGNMENT(KBDState, CritSect, 8);
     286    CHECK_MEMBER_ALIGNMENT(LSILOGISCSI, ReplyPostQueueCritSect, 8);
     287    CHECK_MEMBER_ALIGNMENT(LSILOGISCSI, ReplyFreeQueueCritSect, 8);
    268288#ifdef VBOX_WITH_USB
    269289    CHECK_MEMBER_ALIGNMENT(OHCI, RootHub, 8);
     
    271291    CHECK_MEMBER_ALIGNMENT(OHCI, StatCanceledIsocUrbs, 8);
    272292# endif
    273     CHECK_MEMBER_ALIGNMENT(EHCI, RootHub, 8);
    274 # ifdef VBOX_WITH_STATISTICS
    275     CHECK_MEMBER_ALIGNMENT(EHCI, StatCanceledIsocUrbs, 8);
    276 # endif
    277 #endif
    278 
     293#endif
     294    CHECK_MEMBER_ALIGNMENT(PCIBUS, devices, 16);
     295    CHECK_MEMBER_ALIGNMENT(PCIBUS, devices, 16);
     296    CHECK_MEMBER_ALIGNMENT(PCIGLOBALS, pci_irq_levels, 16);
     297    CHECK_MEMBER_ALIGNMENT(PCNetState, u64LastPoll, 8);
     298    CHECK_MEMBER_ALIGNMENT(PCNetState, CritSect, 8);
     299#ifdef VBOX_WITH_STATISTICS
     300    CHECK_MEMBER_ALIGNMENT(PCNetState, StatMMIOReadGC, 8);
     301#endif
     302    CHECK_MEMBER_ALIGNMENT(PITState, StatPITIrq, 8);
     303    CHECK_MEMBER_ALIGNMENT(SerialState, CritSect, 8);
     304    CHECK_MEMBER_ALIGNMENT(VGASTATE, Dev, 8);
     305    CHECK_MEMBER_ALIGNMENT(VGASTATE, lock, 8);
     306    CHECK_MEMBER_ALIGNMENT(VGASTATE, StatRZMemoryRead, 8);
     307    CHECK_MEMBER_ALIGNMENT(VMMDevState, CritSect, 8);
     308#ifdef VBOX_WITH_VIRTIO
     309    CHECK_MEMBER_ALIGNMENT(VPCISTATE, cs, 8);
     310#endif
    279311
    280312    /*
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