VirtualBox

Changeset 1926 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Apr 4, 2007 12:07:06 PM (18 years ago)
Author:
vboxsync
Message:

Got rid of incorrect assertion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/PATM.cpp

    r1921 r1926  
    39513951    /* Make sure the code selector is wide open; otherwise refuse. */
    39523952    CPUMQueryGuestCtxPtr(pVM, &pCtx);
    3953     Assert(CPUMGetGuestCPL(pVM, CPUMCTX2CORE(pCtx)) == 0);
    3954     RTGCPTR pInstrGCFlat = SELMToFlat(pVM, pCtx->eflags, pCtx->cs, &pCtx->csHid, pInstrGC);
    3955     if (pInstrGCFlat != pInstrGC)
    3956     {
    3957         Log(("PATMR3InstallPatch: code selector not wide open: %04x:%VGv != %VGv eflags=%08x\n", pCtx->cs, pInstrGCFlat, pInstrGC, pCtx->eflags.u32));
    3958         return VERR_PATCHING_REFUSED;
     3953    if (CPUMGetGuestCPL(pVM, CPUMCTX2CORE(pCtx)) == 0)
     3954    {
     3955        RTGCPTR pInstrGCFlat = SELMToFlat(pVM, pCtx->eflags, pCtx->cs, &pCtx->csHid, pInstrGC);
     3956        if (pInstrGCFlat != pInstrGC)
     3957        {
     3958            Log(("PATMR3InstallPatch: code selector not wide open: %04x:%VGv != %VGv eflags=%08x\n", pCtx->cs, pInstrGCFlat, pInstrGC, pCtx->eflags.u32));
     3959            return VERR_PATCHING_REFUSED;
     3960        }
    39593961    }
    39603962
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