VirtualBox

Changeset 10271 in vbox


Ignore:
Timestamp:
Jul 5, 2008 1:07:04 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32883
Message:

Fixed DISGetParamSize for 64 bits mode.

Location:
trunk/src/VBox/Disassembler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/DisasmReg.cpp

    r10170 r10271  
    221221
    222222    if (subtype == OP_PARM_v)
    223         subtype = (pCpu->opmode == CPUMODE_32BIT) ? OP_PARM_d : OP_PARM_w;
     223    {
     224        switch(pCpu->opmode)
     225        {
     226        case CPUMODE_32BIT:
     227            subtype = OP_PARM_d;
     228            break;
     229        case CPUMODE_64BIT:
     230            subtype = OP_PARM_q;
     231            break;
     232        case CPUMODE_16BIT:
     233            subtype = OP_PARM_w;
     234            break;
     235        default:
     236            /* make gcc happy */
     237            break;
     238        }
     239    }
    224240
    225241    switch(subtype)
  • trunk/src/VBox/Disassembler/DisasmTestA.asm

    r9921 r10271  
    7373      ;incorrectly assembled by yasm; REX.W should not be added!
    7474      ;test rax, dword 0cc90cc90h
     75      and   [r15], rax
    7576      movzx rcx, sil
    7677      and   sil, 3
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