Changeset 8234 in vbox for trunk/src/VBox/VMM/PATM
- Timestamp:
- Apr 21, 2008 2:29:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATMPatch.cpp
r8155 r8234 1166 1166 1167 1167 dbgreg = pCpu->param1.base.reg_dbg; 1168 reg = pCpu->param2.base.reg_gen 32;1168 reg = pCpu->param2.base.reg_gen; 1169 1169 } 1170 1170 else … … 1175 1175 1176 1176 pPB[0] = 0x8B; // mov GPR, disp32 1177 reg = pCpu->param1.base.reg_gen 32;1177 reg = pCpu->param1.base.reg_gen; 1178 1178 dbgreg = pCpu->param2.base.reg_dbg; 1179 1179 } … … 1242 1242 pPB[0] = 0x89; //mov disp32, GPR 1243 1243 ctrlreg = pCpu->param1.base.reg_ctrl; 1244 reg = pCpu->param2.base.reg_gen 32;1244 reg = pCpu->param2.base.reg_gen; 1245 1245 Assert(pCpu->param1.flags & USE_REG_CR); 1246 1246 Assert(pCpu->param2.flags & USE_REG_GEN32); … … 1253 1253 1254 1254 pPB[0] = 0x8B; // mov GPR, disp32 1255 reg = pCpu->param1.base.reg_gen 32;1255 reg = pCpu->param1.base.reg_gen; 1256 1256 ctrlreg = pCpu->param2.base.reg_ctrl; 1257 1257 } … … 1319 1319 if (pCpu->prefix & PREFIX_OPSIZE) 1320 1320 pPB[offset++] = 0x66; /* size override -> 16 bits pop */ 1321 pPB[offset++] = 0x58 + pCpu->param1.base.reg_gen 32;1321 pPB[offset++] = 0x58 + pCpu->param1.base.reg_gen; 1322 1322 PATCHGEN_EPILOG(pPatch, offset); 1323 1323 … … 1362 1362 pPB[offset++] = 0x8B; // mov destreg, CPUMCTX.tr/ldtr 1363 1363 /* Modify REG part according to destination of original instruction */ 1364 pPB[offset++] = MAKE_MODRM(0, pCpu->param1.base.reg_gen 32, 5);1364 pPB[offset++] = MAKE_MODRM(0, pCpu->param1.base.reg_gen, 5); 1365 1365 if (pCpu->pCurInstr->opcode == OP_STR) 1366 1366 {
Note:
See TracChangeset
for help on using the changeset viewer.