VirtualBox

Ignore:
Timestamp:
Jun 13, 2012 9:37:47 AM (12 years ago)
Author:
vboxsync
Message:

OP_PARAMETER::flags -> fUse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CSAM.cpp

    r41676 r41678  
    800800    {
    801801    case OP_INT:
    802         Assert(pCpu->param1.flags & DISUSE_IMMEDIATE8);
     802        Assert(pCpu->param1.fUse & DISUSE_IMMEDIATE8);
    803803        if (pCpu->param1.parval == 3)
    804804        {
     
    10971097                     * Any register is allowed as long as source and destination are identical.
    10981098                     */
    1099                     if (    cpu.param1.flags != DISUSE_REG_GEN32
     1099                    if (    cpu.param1.fUse != DISUSE_REG_GEN32
    11001100                        ||  (   cpu.param2.flags != DISUSE_REG_GEN32
    11011101                             && (   !(cpu.param2.flags & DISUSE_REG_GEN32)
     
    11151115                {
    11161116                    if (    (pCurInstrGC & 0x3) != 0
    1117                         ||  cpu.param1.flags != DISUSE_REG_GEN32
     1117                        ||  cpu.param1.fUse != DISUSE_REG_GEN32
    11181118                        ||  cpu.param1.base.reg_gen32 != USE_REG_EBP
    11191119                       )
     
    11411141                {
    11421142                    if (    (pCurInstrGC & 0x3) != 0
    1143                         ||  cpu.param1.flags != DISUSE_REG_GEN32
     1143                        ||  cpu.param1.fUse != DISUSE_REG_GEN32
    11441144                        ||  cpu.param1.base.reg_gen32 != USE_REG_ESP
    11451145                       )
     
    13281328        // For our first attempt, we'll handle only simple relative jumps and calls (immediate offset coded in instruction)
    13291329        if (    ((cpu.pCurInstr->optype & DISOPTYPE_CONTROLFLOW) && (OP_PARM_VTYPE(cpu.pCurInstr->param1) == OP_PARM_J))
    1330             ||  (cpu.pCurInstr->opcode == OP_CALL && cpu.param1.flags == DISUSE_DISPLACEMENT32))  /* simple indirect call (call dword ptr [address]) */
     1330            ||  (cpu.pCurInstr->opcode == OP_CALL && cpu.param1.fUse == DISUSE_DISPLACEMENT32))  /* simple indirect call (call dword ptr [address]) */
    13311331        {
    13321332            /* We need to parse 'call dword ptr [address]' type of calls to catch cpuid instructions in some recent Linux distributions (e.g. OpenSuse 10.3) */
    13331333            if (    cpu.pCurInstr->opcode == OP_CALL
    1334                 &&  cpu.param1.flags == DISUSE_DISPLACEMENT32)
     1334                &&  cpu.param1.fUse == DISUSE_DISPLACEMENT32)
    13351335            {
    13361336                addr = 0;
     
    13421342            if (addr == 0)
    13431343            {
    1344                 Log(("We don't support far jumps here!! (%08X)\n", cpu.param1.flags));
     1344                Log(("We don't support far jumps here!! (%08X)\n", cpu.param1.fUse));
    13451345                rc = VINF_SUCCESS;
    13461346                break;
     
    13991399        else
    14001400        if (    cpu.pCurInstr->opcode == OP_JMP
    1401             &&  (cpu.param1.flags & (DISUSE_DISPLACEMENT32|DISUSE_INDEX|DISUSE_SCALE)) == (DISUSE_DISPLACEMENT32|DISUSE_INDEX|DISUSE_SCALE)
     1401            &&  (cpu.param1.fUse & (DISUSE_DISPLACEMENT32|DISUSE_INDEX|DISUSE_SCALE)) == (DISUSE_DISPLACEMENT32|DISUSE_INDEX|DISUSE_SCALE)
    14021402           )
    14031403        {
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