VirtualBox

Ignore:
Timestamp:
Jun 15, 2012 1:01:49 AM (12 years ago)
Author:
vboxsync
Message:

DISOPCODE: s/opcode/uOpcode/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/testcase/tstDisasm-2.cpp

    r41733 r41737  
    132132static bool MyDisasIsValidInstruction(DISCPUSTATE const *pCpu)
    133133{
    134     switch (pCpu->pCurInstr->opcode)
     134    switch (pCpu->pCurInstr->uOpcode)
    135135    {
    136136        /* These doesn't take memory operands. */
     
    338338            State.fUndefOp = rc == VERR_DIS_INVALID_OPCODE
    339339                          || rc == VERR_DIS_GEN_FAILURE
    340                           || State.Cpu.pCurInstr->opcode == OP_INVALID
    341                           || State.Cpu.pCurInstr->opcode == OP_ILLUD2
     340                          || State.Cpu.pCurInstr->uOpcode == OP_INVALID
     341                          || State.Cpu.pCurInstr->uOpcode == OP_ILLUD2
    342342                          || (    State.enmUndefOp == kUndefOp_DefineByte
    343343                              && !MyDisasIsValidInstruction(&State.Cpu));
     
    357357            else if (!State.fUndefOp && State.enmUndefOp == kUndefOp_All)
    358358            {
    359                 RTPrintf("%s: error at %#RX64: unexpected valid instruction (op=%d)\n", argv0, State.uAddress, State.Cpu.pCurInstr->opcode);
     359                RTPrintf("%s: error at %#RX64: unexpected valid instruction (op=%d)\n", argv0, State.uAddress, State.Cpu.pCurInstr->uOpcode);
    360360                pfnFormatter(&State);
    361361                rcRet = VERR_GENERAL_FAILURE;
     
    363363            else if (State.fUndefOp && State.enmUndefOp == kUndefOp_Fail)
    364364            {
    365                 RTPrintf("%s: error at %#RX64: undefined opcode (op=%d)\n", argv0, State.uAddress, State.Cpu.pCurInstr->opcode);
     365                RTPrintf("%s: error at %#RX64: undefined opcode (op=%d)\n", argv0, State.uAddress, State.Cpu.pCurInstr->uOpcode);
    366366                pfnFormatter(&State);
    367367                rcRet = VERR_GENERAL_FAILURE;
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