Changeset 1969 in vbox for trunk/src/VBox
- Timestamp:
- Apr 6, 2007 9:52:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r1828 r1969 1489 1489 uint32_t cpl; 1490 1490 1491 if ( !pCtxCore->eflags.Bits.u1VM)1491 if (pVM->cpum.s.Guest.cr0 & X86_CR0_PE) 1492 1492 { 1493 cpl = (pCtxCore->ss & X86_SEL_RPL); 1493 if (!pCtxCore->eflags.Bits.u1VM) 1494 { 1495 cpl = (pCtxCore->ss & X86_SEL_RPL); 1494 1496 #ifndef IN_RING0 1495 if (cpl == 1)1496 cpl = 0;1497 if (cpl == 1) 1498 cpl = 0; 1497 1499 #endif 1500 } 1501 else 1502 cpl = 3; 1498 1503 } 1499 1504 else 1500 cpl = 3;1505 cpl = 0; /* real mode; cpl is zero */ 1501 1506 1502 1507 return cpl;
Note:
See TracChangeset
for help on using the changeset viewer.