VirtualBox

忽略:
時間撮記:
2008-10-14 下午02:46:07 (16 年 以前)
作者:
vboxsync
訊息:

lmsw: corrected exit path

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r13266 r13267  
    19261926    uint64_t OldCr0 = CPUMGetGuestCR0(pVM);
    19271927
    1928     /* don't use this path to go into protected mode! */
    1929     Assert(OldCr0 & X86_CR0_PE);
    1930     if (!(OldCr0 & X86_CR0_PE))
    1931         return VERR_EM_INTERPRETER;
    1932 
    19331928    /* Only PE, MP, EM and TS can be changed; note that PE can't be cleared by this instruction. */
    19341929    uint64_t NewCr0 = ( OldCr0 & ~(             X86_CR0_MP | X86_CR0_EM | X86_CR0_TS))
    19351930                    | (u16Data &  (X86_CR0_PE | X86_CR0_MP | X86_CR0_EM | X86_CR0_TS));
     1931
     1932    /* don't use this path to go into protected mode! */
     1933    if ((OldCr0 & X86_CR0_PE) != (NewCr0 & X86_CR0_PE))
     1934        return VERR_EM_INTERPRETER;
    19361935
    19371936    return CPUMSetGuestCR0(pVM, NewCr0);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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