Changeset 13975
- Timestamp:
- 11/07/08 17:33:20 (2 months ago)
- Files:
-
- trunk/include/VBox/cpum.h (modified) (1 diff)
- trunk/src/VBox/VMM/DBGFDisas.cpp (modified) (2 diffs)
- trunk/src/VBox/VMM/DBGFStack.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/VBox/cpum.h
r13960 r13975 894 894 VMMDECL(int) CPUMQueryHyperCtxPtr(PVM pVM, PCPUMCTX *ppCtx); 895 895 VMMDECL(PCCPUMCTXCORE) CPUMGetGuestCtxCore(PVM pVM); 896 VMMDECL(PCCPUMCTXCORE) CPUMGetGuestCtxCoreEx(PVM pVM, PVMCPU pVCpu); 896 897 VMMDECL(PCCPUMCTXCORE) CPUMGetHyperCtxCore(PVM pVM); 897 898 VMMDECL(void) CPUMSetGuestCtxCore(PVM pVM, PCCPUMCTXCORE pCtxCore); trunk/src/VBox/VMM/DBGFDisas.cpp
r13840 r13975 312 312 { 313 313 if (fFlags & DBGF_DISAS_FLAGS_CURRENT_GUEST) 314 pCtxCore = CPUMGetGuestCtxCore (pVM);314 pCtxCore = CPUMGetGuestCtxCoreEx(pVM, VMMGetCpu(pVM)); /* @todo SMP */ 315 315 else 316 316 pCtxCore = CPUMGetHyperCtxCore(pVM); … … 361 361 if (CPUMAreHiddenSelRegsValid(pVM)) 362 362 { /* Assume the current CS defines the execution mode. */ 363 pCtxCore = CPUMGetGuestCtxCore (pVM);363 pCtxCore = CPUMGetGuestCtxCoreEx(pVM, VMMGetCpu(pVM)); /* @todo SMP */ 364 364 pHiddenSel = (CPUMSELREGHID *)&pCtxCore->csHid; 365 365 trunk/src/VBox/VMM/DBGFStack.cpp
r13816 r13975 358 358 PVMREQ pReq; 359 359 int rc = VMR3ReqCall(pVM, VMREQDEST_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)dbgfR3StackWalkCtxFull, 4, 360 pVM, pFrame, CPUMGetGuestCtxCore (pVM), true);360 pVM, pFrame, CPUMGetGuestCtxCoreEx(pVM, VMMGetCpu(pVM)), true); /* @todo SMP */ 361 361 if (RT_SUCCESS(rc)) 362 362 rc = pReq->iStatus; trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r13960 r13975 408 408 VM_ASSERT_EMT(pVM); 409 409 return CPUMCTX2CORE(&pVM->aCpus[VMMGetCpuId(pVM)].cpum.s.Guest); 410 } 411 412 /** 413 * Gets the pointer to the internal CPUMCTXCORE structure. 414 * This is only for reading in order to save a few calls. 415 * 416 * @param pVM Handle to the virtual machine. 417 */ 418 VMMDECL(PCCPUMCTXCORE) CPUMGetGuestCtxCoreEx(PVM pVM, PVMCPU pVCpu) 419 { 420 return CPUMCTX2CORE(&pVCpu->cpum.s.Guest); 410 421 } 411 422

