vbox的更動 13267 路徑 trunk/src/VBox/VMM/VMMAll/EMAll.cpp
- 時間撮記:
- 2008-10-14 下午02:46:07 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r13266 r13267 1926 1926 uint64_t OldCr0 = CPUMGetGuestCR0(pVM); 1927 1927 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 1933 1928 /* Only PE, MP, EM and TS can be changed; note that PE can't be cleared by this instruction. */ 1934 1929 uint64_t NewCr0 = ( OldCr0 & ~( X86_CR0_MP | X86_CR0_EM | X86_CR0_TS)) 1935 1930 | (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; 1936 1935 1937 1936 return CPUMSetGuestCR0(pVM, NewCr0);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器