Changeset 36639 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Apr 11, 2011 10:10:38 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71105
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cpum.h
r35994 r36639 181 181 VMMDECL(bool) CPUMIsGuestR0WriteProtEnabled(PVMCPU pVCpu); 182 182 VMMDECL(bool) CPUMIsGuestInRealMode(PVMCPU pVCpu); 183 VMMDECL(bool) CPUMIsGuestInRealOrV86Mode(PVMCPU pVCpu); 183 184 VMMDECL(bool) CPUMIsGuestInProtectedMode(PVMCPU pVCpu); 184 185 VMMDECL(bool) CPUMIsGuestInPagedProtectedMode(PVMCPU pVCpu); … … 197 198 { 198 199 return !(pCtx->cr0 & X86_CR0_PE); 200 } 201 202 /** 203 * Tests if the guest is running in real or virtual 8086 mode. 204 * 205 * @returns @c true if it is, @c false if not. 206 * @param pCtx Current CPU context 207 */ 208 VMMDECL(bool) CPUMIsGuestInRealOrV86ModeEx(PCPUMCTX pCtx) 209 { 210 return !(pCtx->cr0 & X86_CR0_PE) 211 || pCtx->eflags.Bits.u1VM; /** @todo verify that this cannot be set in long mode. */ 199 212 } 200 213
Note:
See TracChangeset
for help on using the changeset viewer.