VirtualBox

Changeset 13975

Show
Ignore:
Timestamp:
11/07/08 17:33:20 (2 months ago)
Author:
vboxsync
Message:

Even more debugger fixes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/VBox/cpum.h

    r13960 r13975  
    894894VMMDECL(int)            CPUMQueryHyperCtxPtr(PVM pVM, PCPUMCTX *ppCtx); 
    895895VMMDECL(PCCPUMCTXCORE)  CPUMGetGuestCtxCore(PVM pVM); 
     896VMMDECL(PCCPUMCTXCORE)  CPUMGetGuestCtxCoreEx(PVM pVM, PVMCPU pVCpu); 
    896897VMMDECL(PCCPUMCTXCORE)  CPUMGetHyperCtxCore(PVM pVM); 
    897898VMMDECL(void)           CPUMSetGuestCtxCore(PVM pVM, PCCPUMCTXCORE pCtxCore); 
  • trunk/src/VBox/VMM/DBGFDisas.cpp

    r13840 r13975  
    312312    { 
    313313        if (fFlags & DBGF_DISAS_FLAGS_CURRENT_GUEST) 
    314             pCtxCore = CPUMGetGuestCtxCore(pVM); 
     314            pCtxCore = CPUMGetGuestCtxCoreEx(pVM, VMMGetCpu(pVM));    /* @todo SMP */ 
    315315        else 
    316316            pCtxCore = CPUMGetHyperCtxCore(pVM); 
     
    361361        if (CPUMAreHiddenSelRegsValid(pVM)) 
    362362        {   /* Assume the current CS defines the execution mode. */ 
    363             pCtxCore   = CPUMGetGuestCtxCore(pVM); 
     363            pCtxCore   = CPUMGetGuestCtxCoreEx(pVM, VMMGetCpu(pVM));  /* @todo SMP */ 
    364364            pHiddenSel = (CPUMSELREGHID *)&pCtxCore->csHid; 
    365365 
  • trunk/src/VBox/VMM/DBGFStack.cpp

    r13816 r13975  
    358358    PVMREQ pReq; 
    359359    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 */ 
    361361    if (RT_SUCCESS(rc)) 
    362362        rc = pReq->iStatus; 
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r13960 r13975  
    408408    VM_ASSERT_EMT(pVM); 
    409409    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 */ 
     418VMMDECL(PCCPUMCTXCORE) CPUMGetGuestCtxCoreEx(PVM pVM, PVMCPU pVCpu) 
     419{ 
     420    return CPUMCTX2CORE(&pVCpu->cpum.s.Guest); 
    410421} 
    411422 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy