VirtualBox

Changeset 49740 in vbox for trunk/src


Ignore:
Timestamp:
Dec 2, 2013 2:03:03 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Hybrid fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r49734 r49740  
    40934093        /* 64-bit capable CPUs. */
    40944094# if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    4095         Assert(!(pCtx->cs.u64Base >> 32));
    4096         Assert(!pCtx->ss.Attr.u || !(pCtx->ss.u64Base >> 32));
    4097         Assert(!pCtx->ds.Attr.u || !(pCtx->ds.u64Base >> 32));
    4098         Assert(!pCtx->es.Attr.u || !(pCtx->es.u64Base >> 32));
     4095        if (HMVMX_IS_64BIT_HOST_MODE())
     4096        {
     4097            Assert(!(pCtx->cs.u64Base >> 32));
     4098            Assert(!pCtx->ss.Attr.u || !(pCtx->ss.u64Base >> 32));
     4099            Assert(!pCtx->ds.Attr.u || !(pCtx->ds.u64Base >> 32));
     4100            Assert(!pCtx->es.Attr.u || !(pCtx->es.u64Base >> 32));
     4101        }
    40994102# endif
    41004103    }
     
    41424145        /* 64-bit capable CPUs. */
    41434146# if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    4144         Assert(!(pCtx->cs.u64Base >> 32));
    4145         Assert(!u32SSAttr || !(pCtx->ss.u64Base >> 32));
    4146         Assert(!u32DSAttr || !(pCtx->ds.u64Base >> 32));
    4147         Assert(!u32ESAttr || !(pCtx->es.u64Base >> 32));
     4147        if (HMVMX_IS_64BIT_HOST_MODE())
     4148        {
     4149            Assert(!(pCtx->cs.u64Base >> 32));
     4150            Assert(!u32SSAttr || !(pCtx->ss.u64Base >> 32));
     4151            Assert(!u32DSAttr || !(pCtx->ds.u64Base >> 32));
     4152            Assert(!u32ESAttr || !(pCtx->es.u64Base >> 32));
     4153        }
    41484154# endif
    41494155    }
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