Changeset 66785 in vbox for trunk/src/VBox/ValidationKit/bootsectors
- Timestamp:
- May 4, 2017 11:48:37 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115197
- Location:
- trunk/src/VBox/ValidationKit/bootsectors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1-template.c
r66747 r66785 1629 1629 1630 1630 1631 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_BS3CG1ENC_MODRM_VqHi_Uq(PBS3CG1STATE pThis, unsigned iEncoding) 1632 { 1633 unsigned off; 1634 if (iEncoding == 0) 1635 { 1636 off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0)); 1637 pThis->abCurInstr[off++] = X86_MODRM_MAKE(3, 1, 0); 1638 pThis->aOperands[pThis->iRmOp ].idxField = BS3CG1DST_XMM0_LO; 1639 pThis->aOperands[pThis->iRegOp].idxField = BS3CG1DST_XMM1_HI; 1640 } 1641 else if (iEncoding == 1) 1642 { 1643 off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0)); 1644 pThis->abCurInstr[off++] = X86_MODRM_MAKE(3, 2, 2); 1645 pThis->aOperands[pThis->iRmOp ].idxField = BS3CG1DST_XMM2_LO; 1646 pThis->aOperands[pThis->iRegOp].idxField = BS3CG1DST_XMM2_HI; 1647 } 1648 else 1649 return 0; 1650 pThis->cbCurInstr = off; 1651 return iEncoding + 1; 1652 } 1653 1654 1655 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_BS3CG1ENC_MODRM_VqHi_Mq(PBS3CG1STATE pThis, unsigned iEncoding) 1656 { 1657 unsigned off; 1658 if (iEncoding == 0) 1659 { 1660 pThis->aOperands[pThis->iRegOp].idxField = BS3CG1DST_XMM2_HI; 1661 off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0)); 1662 off = Bs3Cfg1EncodeMemMod0Disp(pThis, false, off, 2 /*iReg*/, 8, 0, BS3CG1OPLOC_MEM); 1663 } 1664 else if (iEncoding == 1) 1665 { 1666 pThis->aOperands[pThis->iRegOp].idxField = BS3CG1DST_XMM3_HI; 1667 off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0)); 1668 off = Bs3Cfg1EncodeMemMod0Disp(pThis, false, off, 3 /*iReg*/, 8, 1 /*cbMissalign*/, BS3CG1OPLOC_MEM); 1669 } 1670 else 1671 return 0; 1672 pThis->cbCurInstr = off; 1673 return iEncoding + 1; 1674 } 1675 1676 1631 1677 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_BS3CG1ENC_MODRM_Vdq_Wdq(PBS3CG1STATE pThis, unsigned iEncoding) 1632 1678 { … … 2150 2196 case BS3CG1ENC_MODRM_Vq_Mq: 2151 2197 return Bs3Cg1EncodeNext_BS3CG1ENC_MODRM_Vq_Mq(pThis, iEncoding); 2198 case BS3CG1ENC_MODRM_VqHi_Uq: 2199 return Bs3Cg1EncodeNext_BS3CG1ENC_MODRM_VqHi_Uq(pThis, iEncoding); 2200 case BS3CG1ENC_MODRM_VqHi_Mq: 2201 return Bs3Cg1EncodeNext_BS3CG1ENC_MODRM_VqHi_Mq(pThis, iEncoding); 2152 2202 case BS3CG1ENC_MODRM_Vdq_Wdq: 2153 2203 return Bs3Cg1EncodeNext_BS3CG1ENC_MODRM_Vdq_Wdq(pThis, iEncoding); … … 2318 2368 2319 2369 case BS3CG1ENC_MODRM_Vq_UqHi: 2370 case BS3CG1ENC_MODRM_VqHi_Uq: 2320 2371 pThis->iRmOp = 1; 2321 2372 pThis->iRegOp = 0; … … 2327 2378 2328 2379 case BS3CG1ENC_MODRM_Vq_Mq: 2380 case BS3CG1ENC_MODRM_VqHi_Mq: 2329 2381 pThis->iRmOp = 1; 2330 2382 pThis->iRegOp = 0; -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1.h
r66747 r66785 63 63 BS3CG1OP_Vq, 64 64 BS3CG1OP_Vdq, 65 BS3CG1OP_VqHi, 65 66 66 67 BS3CG1OP_Ib, … … 106 107 BS3CG1ENC_MODRM_Vq_UqHi, 107 108 BS3CG1ENC_MODRM_Vq_Mq, 109 BS3CG1ENC_MODRM_VqHi_Uq, 110 BS3CG1ENC_MODRM_VqHi_Mq, 108 111 BS3CG1ENC_MODRM_Vdq_Wdq, 109 112 BS3CG1ENC_MODRM_Vpd_Wpd,
Note:
See TracChangeset
for help on using the changeset viewer.