VirtualBox

Changeset 67102 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
May 25, 2017 10:35:24 PM (8 years ago)
Author:
vboxsync
Message:

bs3-cpu-generated-1: cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1-template.c

    r67101 r67102  
    19641964
    19651965
    1966 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_VqHi_WO_Uq(PBS3CG1STATE pThis, unsigned iEncoding)
    1967 {
    1968     unsigned off;
    1969     if (iEncoding == 0)
    1970     {
    1971         off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0));
    1972         pThis->abCurInstr[off++] = X86_MODRM_MAKE(3, 1, 0);
    1973         pThis->aOperands[pThis->iRmOp ].idxField = BS3CG1DST_XMM0_LO;
    1974         pThis->aOperands[pThis->iRegOp].idxField = BS3CG1DST_XMM1_HI;
    1975     }
    1976     else if (iEncoding == 1)
    1977     {
    1978         off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0));
    1979         pThis->abCurInstr[off++] = X86_MODRM_MAKE(3, 2, 2);
    1980         pThis->aOperands[pThis->iRmOp ].idxField = BS3CG1DST_XMM2_LO;
    1981         pThis->aOperands[pThis->iRegOp].idxField = BS3CG1DST_XMM2_HI;
    1982     }
    1983     else
    1984         return 0;
    1985     pThis->cbCurInstr = off;
    1986     return iEncoding + 1;
    1987 }
    1988 
    1989 
    19901966static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vsomething_Wsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    19911967{
     
    36073583        case BS3CG1ENC_MODRM_Vq_WO_Mq:
    36083584            return Bs3Cg1EncodeNext_MODRM_Vq_WO_Mq(pThis, iEncoding);
    3609         case BS3CG1ENC_MODRM_VqHi_WO_Uq:
    3610             return Bs3Cg1EncodeNext_MODRM_VqHi_WO_Uq(pThis, iEncoding);
    36113585
    36123586        case BS3CG1ENC_FIXED:
     
    39613935
    39623936        case BS3CG1ENC_MODRM_VqHi_WO_Uq:
    3963             pThis->iRmOp             = 1;
    3964             pThis->iRegOp            = 0;
    3965             pThis->aOperands[0].cbOp = 8;
    3966             pThis->aOperands[1].cbOp = 8;
    3967             pThis->aOperands[0].enmLocation = BS3CG1OPLOC_CTX;
    3968             pThis->aOperands[1].enmLocation = BS3CG1OPLOC_CTX;
     3937            pThis->pfnEncoder                  = Bs3Cg1EncodeNext_MODRM_Vsomething_Usomething_OR_ViceVersa;
     3938            pThis->iRegOp                      = 0;
     3939            pThis->iRmOp                       = 1;
     3940            pThis->aOperands[0].cbOp           = 8;
     3941            pThis->aOperands[1].cbOp           = 8;
     3942            pThis->aOperands[0].idxFieldBase   = BS3CG1DST_XMM0_HI;
     3943            pThis->aOperands[1].idxFieldBase   = BS3CG1DST_XMM0_LO;
     3944            pThis->aOperands[0].enmLocation    = BS3CG1OPLOC_CTX;
     3945            pThis->aOperands[1].enmLocation    = BS3CG1OPLOC_CTX;
    39693946            break;
    39703947
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