Changeset 9659 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Jun 12, 2008 12:37:02 PM (17 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r9658 r9659 167 167 EMDECL(int) EMInterpretDisasOneEx(PVM pVM, RTGCUINTPTR GCPtrInstr, PCCPUMCTXCORE pCtxCore, PDISCPUSTATE pCpu, unsigned *pcbInstr) 168 168 { 169 int rc = DISCoreOneEx(GCPtrInstr, SELMGet SelectorType(pVM, pCtxCore->eflags, pCtxCore->cs, (PCPUMSELREGHID)&pCtxCore->csHid),169 int rc = DISCoreOneEx(GCPtrInstr, SELMGetCpuModeFromSelector(pVM, pCtxCore->eflags, pCtxCore->cs, (PCPUMSELREGHID)&pCtxCore->csHid), 170 170 #ifdef IN_GC 171 171 NULL, NULL, … … 209 209 uint32_t cbOp; 210 210 DISCPUSTATE Cpu; 211 Cpu.mode = SELMGet SelectorType(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid);211 Cpu.mode = SELMGetCpuModeFromSelector(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid); 212 212 rc = emDisCoreOne(pVM, &Cpu, (RTGCUINTPTR)pbCode, &cbOp); 213 213 if (VBOX_SUCCESS(rc)) … … 631 631 632 632 /* Read stack value first */ 633 if (SELMGet SelectorType(pVM, pRegFrame->eflags, pRegFrame->ss, &pRegFrame->ssHid) == CPUMODE_16BIT)633 if (SELMGetCpuModeFromSelector(pVM, pRegFrame->eflags, pRegFrame->ss, &pRegFrame->ssHid) == CPUMODE_16BIT) 634 634 return VERR_EM_INTERPRETER; /* No legacy 16 bits stuff here, please. */ 635 635 -
trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp
r9658 r9659 302 302 { 303 303 cTransfers = pRegFrame->ecx; 304 if (SELMGet SelectorType(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid) == CPUMODE_16BIT)304 if (SELMGetCpuModeFromSelector(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid) == CPUMODE_16BIT) 305 305 cTransfers &= 0xffff; 306 306 … … 543 543 { 544 544 cTransfers = pRegFrame->ecx; 545 if (SELMGet SelectorType(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid) == CPUMODE_16BIT)545 if (SELMGetCpuModeFromSelector(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid) == CPUMODE_16BIT) 546 546 cTransfers &= 0xffff; 547 547 … … 1310 1310 cTransfers = pRegFrame->ecx; 1311 1311 1312 if (SELMGet SelectorType(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid) == CPUMODE_16BIT)1312 if (SELMGetCpuModeFromSelector(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid) == CPUMODE_16BIT) 1313 1313 cTransfers &= 0xffff; 1314 1314 … … 1465 1465 { 1466 1466 cTransfers = pRegFrame->ecx; 1467 if (SELMGet SelectorType(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid) == CPUMODE_16BIT)1467 if (SELMGetCpuModeFromSelector(pVM, pRegFrame->eflags, pRegFrame->cs, &pRegFrame->csHid) == CPUMODE_16BIT) 1468 1468 cTransfers &= 0xffff; 1469 1469 -
trunk/src/VBox/VMM/VMMAll/SELMAll.cpp
r9658 r9659 536 536 537 537 /** 538 * Return the selector type538 * Return the cpu mode corresponding to the (CS) selector 539 539 * 540 540 * @returns DISCPUMODE according to the selector type (16, 32 or 64 bits) … … 542 542 * @param Sel The selector. 543 543 */ 544 static DISCPUMODE selmGet SelectorType(PVM pVM, RTSEL Sel)544 static DISCPUMODE selmGetCpuModeFromSelector(PVM pVM, RTSEL Sel) 545 545 { 546 546 Assert(!CPUMAreHiddenSelRegsValid(pVM)); … … 561 561 562 562 /** 563 * Return the selector type563 * Return the cpu mode corresponding to the (CS) selector 564 564 * 565 565 * @returns DISCPUMODE according to the selector type (16, 32 or 64 bits) … … 569 569 * @param pHiddenSel The hidden selector register. 570 570 */ 571 SELMDECL(DISCPUMODE) SELMGet SelectorType(PVM pVM, X86EFLAGS eflags, RTSEL Sel, CPUMSELREGHID *pHiddenSel)571 SELMDECL(DISCPUMODE) SELMGetCpuModeFromSelector(PVM pVM, X86EFLAGS eflags, RTSEL Sel, CPUMSELREGHID *pHiddenSel) 572 572 { 573 573 if (!CPUMAreHiddenSelRegsValid(pVM)) … … 580 580 return CPUMODE_16BIT; 581 581 582 return selmGet SelectorType(pVM, Sel);582 return selmGetCpuModeFromSelector(pVM, Sel); 583 583 } 584 584 if ( CPUMIsGuestInLongMode(pVM)
Note:
See TracChangeset
for help on using the changeset viewer.