VirtualBox

Changeset 11462 in vbox


Ignore:
Timestamp:
Aug 18, 2008 12:35:02 PM (16 years ago)
Author:
vboxsync
Message:

Correct fix for forced flag handling in instruction groups.

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

Legend:

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

    r11461 r11462  
    441441    {
    442442        if (pOp->optype & OPTYPE_FORCED_64_OP_SIZE)
    443             pCpu->opsize = CPUMODE_64BIT;
     443            pCpu->opmode = CPUMODE_64BIT;
    444444        else
    445445        if (    (pOp->optype & OPTYPE_DEFAULT_64_OP_SIZE)
    446446            &&  !(pCpu->prefix & PREFIX_OPSIZE))
    447             pCpu->opsize = CPUMODE_64BIT;
     447            pCpu->opmode = CPUMODE_64BIT;
    448448    }
    449449
     
    515515        /* Note: redundant, but just in case this ever changes */
    516516        if (fpop->optype & OPTYPE_FORCED_64_OP_SIZE)
    517             pCpu->opsize = CPUMODE_64BIT;
     517            pCpu->opmode = CPUMODE_64BIT;
    518518        else
    519519        if (    (fpop->optype & OPTYPE_DEFAULT_64_OP_SIZE)
    520520            &&  !(pCpu->prefix & PREFIX_OPSIZE))
    521             pCpu->opsize = CPUMODE_64BIT;
     521            pCpu->opmode = CPUMODE_64BIT;
    522522    }
    523523
  • trunk/src/VBox/Disassembler/DisasmTest.cpp

    r10276 r11462  
    7272        pInstr = (RTUINTPTR)TestProc64;
    7373
     74////__debugbreak();
    7475        for (int i=0;i<50;i++)
    7576        {
  • trunk/src/VBox/Disassembler/DisasmTestA.asm

    r10275 r11462  
    7171align 16
    7272BEGINPROC TestProc64
     73      call qword [r8+10h]
     74      ; test
     75      db 48h
     76      db 8bh
     77      db 44h
     78      db 0ah
     79      db 0f8h
    7380      ;incorrectly assembled by yasm; REX.W should not be added!
    7481      ;test rax, dword 0cc90cc90h
     82      db 8bh
     83      db 04h
     84      db 8dh
     85      db 00h
     86      db 00h
     87      db 0feh
     88      db 0ffh
    7589      mov   qword [rcx+rdx], 0
    7690      mov   dword [rcx+rdx], 0
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