VirtualBox

Changeset 1361 in vbox for trunk


Ignore:
Timestamp:
Mar 9, 2007 10:48:31 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19352
Message:

Compile fix + updates

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IOMAll.cpp

    r1360 r1361  
    11991199     */
    12001200    uint32_t efl = CPUMRawGetEFlags(pVM, pCtxCore);
    1201 
    1202     if (    (    (pCtxCore->ss & X86_SEL_RPL) > 1
     1201    uint32_t cpl = (pCtxCore->ss & X86_SEL_RPL);
     1202
     1203    if (    (    cpl > 1
    12031204             &&  X86_EFL_GET_IOPL(efl) < cpl)
    12041205        ||  pCtxCore->eflags.Bits.u1VM      /* IOPL is ignored in V86 mode; always check TSS bitmap */
  • trunk/src/VBox/VMM/VMMAll/SELMAll.cpp

    r1359 r1361  
    9191{
    9292    /*
    93      * Deal with real mode first.
     93     * Deal with real & v86 mode first.
    9494     */
    9595    if (    CPUMIsGuestInRealMode(pVM)
     
    126126{
    127127    /*
    128      * Deal with real mode first.
     128     * Deal with real & v86 mode first.
    129129     */
    130130    if (    CPUMIsGuestInRealMode(pVM)
     
    375375SELMDECL(int) SELMValidateAndConvertCSAddr(PVM pVM, X86EFLAGS eflags, RTSEL SelCPL, RTSEL SelCS, CPUMSELREGHID *pHiddenCSSel, RTGCPTR Addr, PRTGCPTR ppvFlat)
    376376{
    377     /* Special handling for V86 mode */
    378     if (eflags.Bits.u1VM)
     377    /*
     378     * Deal with real & v86 mode first.
     379     */
     380    if (    CPUMIsGuestInRealMode(pVM)
     381        ||  eflags.Bits.u1VM)
    379382    {
    380383        if (ppvFlat)
     
    471474SELMDECL(bool) SELMIsSelector32Bit(PVM pVM, X86EFLAGS eflags, RTSEL Sel, CPUMSELREGHID *pHiddenSel)
    472475{
    473     if (eflags.Bits.u1VM)
     476    /*
     477     * Deal with real & v86 mode first.
     478     */
     479    if (    CPUMIsGuestInRealMode(pVM)
     480        ||  eflags.Bits.u1VM)
    474481        return false;
    475482
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette