- Timestamp:
- Apr 16, 2007 12:56:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/SELMAll.cpp
r2009 r2098 90 90 SELMDECL(RTGCPTR) SELMToFlat(PVM pVM, X86EFLAGS eflags, RTSEL Sel, CPUMSELREGHID *pHiddenSel, RTGCPTR Addr) 91 91 { 92 /*93 * Deal with real & v86 mode first.94 */95 if ( CPUMIsGuestInRealMode(pVM)96 || eflags.Bits.u1VM)97 {98 RTGCUINTPTR uFlat = ((RTGCUINTPTR)Addr & 0xffff) + ((RTGCUINTPTR)Sel << 4);99 return (RTGCPTR)uFlat;100 }101 102 92 if (!CPUMAreHiddenSelRegsValid(pVM)) 93 { 94 /* 95 * Deal with real & v86 mode first. 96 */ 97 if ( CPUMIsGuestInRealMode(pVM) 98 || eflags.Bits.u1VM) 99 { 100 RTGCUINTPTR uFlat = ((RTGCUINTPTR)Addr & 0xffff) + ((RTGCUINTPTR)Sel << 4); 101 return (RTGCPTR)uFlat; 102 } 103 103 104 return selmToFlat(pVM, Sel, Addr); 104 105 } 105 106 return (RTGCPTR)(pHiddenSel->u32Base + (RTGCUINTPTR)Addr); 106 107 }
Note:
See TracChangeset
for help on using the changeset viewer.