VirtualBox

Changeset 8234 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Apr 21, 2008 2:29:54 PM (17 years ago)
Author:
vboxsync
Message:

MMIO: Cleanup up (removed duplicate code)
Disassembler: simplified general purpose register access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/PATMPatch.cpp

    r8155 r8234  
    11661166
    11671167        dbgreg = pCpu->param1.base.reg_dbg;
    1168         reg    = pCpu->param2.base.reg_gen32;
     1168        reg    = pCpu->param2.base.reg_gen;
    11691169    }
    11701170    else
     
    11751175
    11761176        pPB[0] = 0x8B;      // mov GPR, disp32
    1177         reg    = pCpu->param1.base.reg_gen32;
     1177        reg    = pCpu->param1.base.reg_gen;
    11781178        dbgreg = pCpu->param2.base.reg_dbg;
    11791179    }
     
    12421242        pPB[0] = 0x89;      //mov disp32, GPR
    12431243        ctrlreg = pCpu->param1.base.reg_ctrl;
    1244         reg     = pCpu->param2.base.reg_gen32;
     1244        reg     = pCpu->param2.base.reg_gen;
    12451245        Assert(pCpu->param1.flags & USE_REG_CR);
    12461246        Assert(pCpu->param2.flags & USE_REG_GEN32);
     
    12531253
    12541254        pPB[0]  = 0x8B;      // mov GPR, disp32
    1255         reg     = pCpu->param1.base.reg_gen32;
     1255        reg     = pCpu->param1.base.reg_gen;
    12561256        ctrlreg = pCpu->param2.base.reg_ctrl;
    12571257    }
     
    13191319    if (pCpu->prefix & PREFIX_OPSIZE)
    13201320        pPB[offset++] = 0x66; /* size override -> 16 bits pop */
    1321     pPB[offset++] = 0x58 + pCpu->param1.base.reg_gen32;
     1321    pPB[offset++] = 0x58 + pCpu->param1.base.reg_gen;
    13221322    PATCHGEN_EPILOG(pPatch, offset);
    13231323
     
    13621362        pPB[offset++] = 0x8B;              // mov       destreg, CPUMCTX.tr/ldtr
    13631363        /* Modify REG part according to destination of original instruction */
    1364         pPB[offset++] = MAKE_MODRM(0, pCpu->param1.base.reg_gen32, 5);
     1364        pPB[offset++] = MAKE_MODRM(0, pCpu->param1.base.reg_gen, 5);
    13651365        if (pCpu->pCurInstr->opcode == OP_STR)
    13661366        {
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