VirtualBox

Changeset 8242 in vbox for trunk


Ignore:
Timestamp:
Apr 21, 2008 4:11:09 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29973
Message:

small logging fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r8236 r8242  
    678678        return VERR_EM_INTERPRETER;
    679679
    680 #ifdef DEBUG
     680#ifdef LOG_ENABLED
    681681    const char *pszInstr;
    682682
    683683    if (pCpu->pCurInstr->opcode == OP_XOR)
    684684        pszInstr = "Xor";
     685    else if (pCpu->pCurInstr->opcode == OP_OR)
     686        pszInstr = "Or";
     687    else if (pCpu->pCurInstr->opcode == OP_AND)
     688        pszInstr = "And";
    685689    else
    686     if (pCpu->pCurInstr->opcode == OP_OR)
    687         pszInstr = "Or";
    688     else
    689     if (pCpu->pCurInstr->opcode == OP_AND)
    690         pszInstr = "And";
     690        pszInstr = "OrXorAnd??";
    691691#endif
    692692
     
    850850        return VERR_EM_INTERPRETER;
    851851
    852 #ifdef DEBUG
     852#ifdef LOG_ENABLED
    853853    const char *pszInstr;
    854854
    855855    if (pCpu->pCurInstr->opcode == OP_SUB)
    856856        pszInstr = "Sub";
     857    else if (pCpu->pCurInstr->opcode == OP_ADD)
     858        pszInstr = "Add";
     859    else if (pCpu->pCurInstr->opcode == OP_ADC)
     860        pszInstr = "Adc";
    857861    else
    858     if (pCpu->pCurInstr->opcode == OP_ADD)
    859         pszInstr = "Add";
    860     else
    861     if (pCpu->pCurInstr->opcode == OP_ADC)
    862         pszInstr = "Adc";
     862        pszInstr = "AddSub??";
    863863#endif
    864864
     
    974974    if (pCpu->pCurInstr->opcode == OP_BTR)
    975975        pszInstr = "Btr";
     976    else if (pCpu->pCurInstr->opcode == OP_BTS)
     977        pszInstr = "Bts";
     978    else if (pCpu->pCurInstr->opcode == OP_BTC)
     979        pszInstr = "Btc";
    976980    else
    977     if (pCpu->pCurInstr->opcode == OP_BTS)
    978         pszInstr = "Bts";
    979     else
    980     if (pCpu->pCurInstr->opcode == OP_BTC)
    981         pszInstr = "Btc";
     981        pszInstr = "Bit??";
    982982#endif
    983983
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