VirtualBox

Changeset 19294 in vbox


Ignore:
Timestamp:
May 1, 2009 4:18:59 PM (16 years ago)
Author:
vboxsync
Message:

DBGFDisas.cpp: overlooked one SMP todo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGFDisas.cpp

    r19293 r19294  
    373373        if (CPUMAreHiddenSelRegsValid(pVM))
    374374        {   /* Assume the current CS defines the execution mode. */
    375             pCtxCore   = CPUMGetGuestCtxCore(VMMGetCpu(pVM));  /* @todo SMP support!! */
     375            pCtxCore   = CPUMGetGuestCtxCore(pVCpu);
    376376            pHiddenSel = (CPUMSELREGHID *)&pCtxCore->csHid;
    377377
     
    540540    AssertReturn(idCpu < pVM->cCPUs, VERR_INVALID_CPU_ID);
    541541
     542    /*
     543     * Optimize the common case where we're called on the EMT of idCpu since
     544     * we're using this all the time when logging.
     545     */
    542546    int     rc;
    543547    PVMCPU  pVCpu = VMMGetCpu(pVM);
    544548    if (    pVCpu
    545         &&  pVCpu->idCpu == idCpu) /* not necessary, but it's faster. */
     549        &&  pVCpu->idCpu == idCpu)
    546550        rc = dbgfR3DisasInstrExOnVCpu(pVM, pVCpu, Sel, &GCPtr, fFlags, pszOutput, cchOutput, pcbInstr);
    547551    else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette