VirtualBox

Changeset 2098 in vbox for trunk


Ignore:
Timestamp:
Apr 16, 2007 12:56:42 PM (18 years ago)
Author:
vboxsync
Message:

SELMToFlat change for hwaccm mode.

File:
1 edited

Legend:

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

    r2009 r2098  
    9090SELMDECL(RTGCPTR) SELMToFlat(PVM pVM, X86EFLAGS eflags, RTSEL Sel, CPUMSELREGHID *pHiddenSel, RTGCPTR Addr)
    9191{
    92     /*
    93      * Deal with real & v86 mode first.
    94      */
    95     if (    CPUMIsGuestInRealMode(pVM)
    96         ||  eflags.Bits.u1VM)
    97     {
    98         RTGCUINTPTR uFlat = ((RTGCUINTPTR)Addr & 0xffff) + ((RTGCUINTPTR)Sel << 4);
    99         return (RTGCPTR)uFlat;
    100     }
    101 
    10292    if (!CPUMAreHiddenSelRegsValid(pVM))
     93    {
     94        /*
     95        * Deal with real & v86 mode first.
     96        */
     97        if (    CPUMIsGuestInRealMode(pVM)
     98            ||  eflags.Bits.u1VM)
     99        {
     100            RTGCUINTPTR uFlat = ((RTGCUINTPTR)Addr & 0xffff) + ((RTGCUINTPTR)Sel << 4);
     101            return (RTGCPTR)uFlat;
     102        }
     103
    103104        return selmToFlat(pVM, Sel, Addr);
    104 
     105    }
    105106    return (RTGCPTR)(pHiddenSel->u32Base + (RTGCUINTPTR)Addr);
    106107}
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