VirtualBox

Changeset 70949 in vbox for trunk


Ignore:
Timestamp:
Feb 10, 2018 3:41:14 PM (7 years ago)
Author:
vboxsync
Message:

VMM: Added a bMainExecutionEngine member to the VM structure for use instead of fHMEnabled and fNEMEnabled. Changed a lot of HMIsEnabled invocations to use the new macros VM_IS_RAW_MODE_ENABLED and VM_IS_HM_OR_NEM_ENABLED. Eliminated fHMEnabledFixed. Fixed inverted test for raw-mode debug register sanity checking. Some other minor cleanups. [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VMMSwitcher.cpp

    r70948 r70949  
    4545*   Global Variables                                                                                                             *
    4646*********************************************************************************************************************************/
    47 #if defined(VBOX_WITH_RAW_MODE) || (HC_ARCH_BITS != 64)
     47#if defined(VBOX_WITH_RAW_MODE) || HC_ARCH_BITS != 64
     48
    4849/** Array of switcher definitions.
    4950 * The type and index shall match!
     
    9394# endif
    9495};
    95 #endif /* VBOX_WITH_RAW_MODE || (HC_ARCH_BITS != 64) */
    96 
    9796
    9897/** Array of switcher definitions.
     
    102101{
    103102    NULL, /* invalid entry */
    104 #if HC_ARCH_BITS == 32
     103# if HC_ARCH_BITS == 32
    105104    NULL,   //&vmmR3Switcher32BitTo32Bit_Def,
    106105    NULL,   //&vmmR3Switcher32BitToPAE_Def,
     
    112111    NULL,   //&vmmR3SwitcherAMD64ToPAE_Def,
    113112    NULL,   //&vmmR3SwitcherAMD64ToAMD64_Def,
    114 #else  /* !VBOX_WITH_RAW_MODE */
    115     NULL,
    116     NULL,
    117     NULL,
    118     NULL,
    119     NULL,
    120     NULL,
    121     NULL,
    122     NULL,
    123     NULL,
    124 #endif /* !VBOX_WITH_RAW_MODE */
    125 #ifndef RT_ARCH_AMD64
     113# else  /* !VBOX_WITH_RAW_MODE */
     114    NULL,
     115    NULL,
     116    NULL,
     117    NULL,
     118    NULL,
     119    NULL,
     120    NULL,
     121    NULL,
     122    NULL,
     123# endif /* !VBOX_WITH_RAW_MODE */
     124# ifndef RT_ARCH_AMD64
    126125    &vmmR3SwitcherX86Stub_Def,
    127126    NULL,
    128 #else
     127# else
    129128    NULL,
    130129    &vmmR3SwitcherAMD64Stub_Def,
    131 #endif
     130# endif
    132131};
     132
     133#endif /* VBOX_WITH_RAW_MODE || HC_ARCH_BITS != 64 */
    133134
    134135
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