Changeset 67033 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 23, 2017 10:08:01 AM (8 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1-template.c
r67030 r67033 2335 2335 2336 2336 2337 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Mq_WO_Pq(PBS3CG1STATE pThis, unsigned iEncoding) 2338 { 2339 unsigned off; 2340 switch (iEncoding) 2341 { 2342 case 0: 2343 off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0)); 2344 off = Bs3Cfg1EncodeMemMod0DispWithRegFieldAndDefaults(pThis, false, off, 4 /*iReg*/, 0 /*cbMisalign*/); 2345 break; 2346 case 1: 2347 off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0)); 2348 off = Bs3Cfg1EncodeMemMod0DispWithRegFieldAndDefaults(pThis, false, off, 7 /*iReg*/, 1 /*cbMisalign*/); 2349 iEncoding += !BS3CG1_IS_64BIT_TARGET(pThis) ? 1 : 0; 2350 break; 2351 #if ARCH_BITS == 64 2352 case 2: 2353 off = Bs3Cg1InsertReqPrefix(pThis, 0); 2354 pThis->abCurInstr[off++] = REX__RBX; 2355 off = Bs3Cg1InsertOpcodes(pThis, off); 2356 off = Bs3Cfg1EncodeMemMod0DispWithRegFieldAndDefaults(pThis, false, off, 7 /*iReg - no +8*/, 0 /*cbMisalign*/); 2357 break; 2358 #endif 2359 2360 default: 2361 return 0; 2362 } 2363 2364 pThis->cbCurInstr = off; 2365 return iEncoding + 1; 2366 } 2367 2368 2337 2369 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Mq_WO_Vq(PBS3CG1STATE pThis, unsigned iEncoding) 2338 2370 { … … 4531 4563 pThis->aOperands[0].cbOp = 4; 4532 4564 pThis->aOperands[0].enmLocation = BS3CG1OPLOC_MEM_WO; 4565 break; 4566 4567 case BS3CG1ENC_MODRM_Mq_WO_Pq: 4568 pThis->pfnEncoder = Bs3Cg1EncodeNext_MODRM_Mq_WO_Pq; 4569 pThis->iRmOp = 0; 4570 pThis->iRegOp = 1; 4571 pThis->aOperands[0].cbOp = 8; 4572 pThis->aOperands[1].cbOp = 8; 4573 pThis->aOperands[1].idxFieldBase = BS3CG1DST_MM0; 4574 pThis->aOperands[0].enmLocation = BS3CG1OPLOC_MEM_WO; 4575 pThis->aOperands[1].enmLocation = BS3CG1OPLOC_CTX; 4533 4576 break; 4534 4577 -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1.h
r67030 r67033 173 173 BS3CG1ENC_MODRM_Md_RO, 174 174 BS3CG1ENC_MODRM_Md_WO, 175 BS3CG1ENC_MODRM_Mq_WO_Pq, 175 176 BS3CG1ENC_MODRM_Mq_WO_Vq, 176 177 BS3CG1ENC_MODRM_Mq_WO_VqHi,
Note:
See TracChangeset
for help on using the changeset viewer.