Changeset 1465 in vbox
- Timestamp:
- Mar 14, 2007 10:06:39 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATMPatch.cpp
r1462 r1465 691 691 */ 692 692 offset = 0; 693 /* include prefix byte to make sure we don't use the incorrect selector register. */ 694 if (pCpu->prefix & PREFIX_SEG) 695 pPB[offset++] = DISQuerySegPrefixByte(pCpu); 693 696 pPB[offset++] = 0xFF; // push r/m32 694 697 pPB[offset++] = MAKE_MODRM(MODRM_MOD(pCpu->ModRM), 6 /* group 5 */, MODRM_RM(pCpu->ModRM)); … … 784 787 */ 785 788 offset = 0; 789 /* include prefix byte to make sure we don't use the incorrect selector register. */ 790 if (pCpu->prefix & PREFIX_SEG) 791 pPB[offset++] = DISQuerySegPrefixByte(pCpu); 792 786 793 pPB[offset++] = 0xFF; // push r/m32 787 794 pPB[offset++] = MAKE_MODRM(MODRM_MOD(pCpu->ModRM), 6 /* group 5 */, MODRM_RM(pCpu->ModRM)); … … 1331 1338 if (pCpu->prefix == PREFIX_SEG) 1332 1339 { 1333 /** @todo untested */ 1334 pPB[offset++] = pCpu->prefix_seg; 1340 pPB[offset++] = DISQuerySegPrefixByte(pCpu); 1335 1341 } 1336 1342 pPB[offset++] = 0x8D; // lea edx, dword ptr [dest] … … 1427 1433 if (pCpu->prefix == PREFIX_SEG) 1428 1434 { 1429 /* @todo untested */ 1430 pPB[offset++] = pCpu->prefix_seg; 1435 pPB[offset++] = DISQuerySegPrefixByte(pCpu); 1431 1436 } 1432 1437 pPB[offset++] = 0x8D; // lea edx, dword ptr [dest]
Note:
See TracChangeset
for help on using the changeset viewer.