VirtualBox

Changeset 19293 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
May 1, 2009 4:11:18 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46745
Message:

DBGF,VMM: SMP refactoring of the DBGF disassembler code. Changed VMMGetCpu and VMMGetCpuId to return NULL and NIL if the caller isn't an EMT. Renamed VMMGetCpuEx to VMMGetCpuById.

File:
1 edited

Legend:

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

    r19240 r19293  
    58645864        char szBuf[256];
    58655865        szBuf[0] = '\0';
    5866         DBGFR3DisasInstr(pVM, pVCpu, pCtx->cs, pCurPatchInstrGC, szBuf, sizeof(szBuf));
     5866        DBGFR3DisasInstrEx(pVM, pVCpu->idCpu, pCtx->cs, pCurPatchInstrGC, 0, szBuf, sizeof(szBuf), NULL);
    58675867        Log(("DIRTY: %s\n", szBuf));
    58685868#endif
     
    59265926                char szBuf[256];
    59275927                szBuf[0] = '\0';
    5928                 DBGFR3DisasInstr(pVM, pVCpu, pCtx->cs, pCurInstrGC, szBuf, sizeof(szBuf));
     5928                DBGFR3DisasInstrEx(pVM, pVCpu->idCpu, pCtx->cs, pCurInstrGC, 0, szBuf, sizeof(szBuf), NULL);
    59295929                Log(("NEW:   %s\n", szBuf));
    59305930#endif
     
    59425942                char szBuf[256];
    59435943                szBuf[0] = '\0';
    5944                 DBGFR3DisasInstr(pVM, pVCpu, pCtx->cs, pCurInstrGC, szBuf, sizeof(szBuf));
     5944                DBGFR3DisasInstrEx(pVM, pVCpu->idCpu, pCtx->cs, pCurInstrGC, 0, szBuf, sizeof(szBuf), NULL);
    59455945                Log(("NEW:   %s (FAILED)\n", szBuf));
    59465946#endif
     
    61406140        char szBuf[256];
    61416141        szBuf[0] = '\0';
    6142         DBGFR3DisasInstr(pVM, pVCpu, pCtx->cs, pEip, szBuf, sizeof(szBuf));
     6142        DBGFR3DisasInstrEx(pVM, pVCpu->idCpu, pCtx->cs, pEip, 0, szBuf, sizeof(szBuf), NULL);
    61436143
    61446144        /* Very bad. We crashed in emitted code. Probably stack? */
Note: See TracChangeset for help on using the changeset viewer.

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