VirtualBox

Ignore:
Timestamp:
May 25, 2017 10:45:41 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

    r67104 r67105  
    20992099        case 1:
    21002100            off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0));
    2101             off = Bs3Cfg1EncodeMemMod0DispWithRegFieldAndDefaultsMisaligned(pThis, off, 3 /*iReg*/, 1 /*cbMisalign*/);
    2102             break;
    2103         default:
    2104             return 0;
    2105     }
    2106     pThis->cbCurInstr = off;
    2107     return iEncoding + 1;
    2108 }
    2109 
    2110 
    2111 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_MsomethingWO_Vsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    2112 {
    2113     unsigned off;
    2114     switch (iEncoding)
    2115     {
    2116         case 0:
    2117             off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0));
    2118             off = Bs3Cfg1EncodeMemMod0DispWithRegFieldAndDefaults(pThis, off, 2 /*iReg*/);
    2119             break;
    2120         case 1:
    2121             off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0));
    21222101            off = Bs3Cfg1EncodeMemMod0DispWithRegFieldAndDefaultsMisaligned(pThis, off, 2 /*iReg*/, 1 /*cbMisalign*/ );
    21232102            if (!Bs3Cg1XcptTypeIsUnaligned(pThis->enmXcptType))
     
    37903769
    37913770        case BS3CG1ENC_MODRM_Vdq_WO_Mdq:
    3792             pThis->pfnEncoder                   = Bs3Cg1EncodeNext_MODRM_MsomethingWO_Vsomething_OR_ViceVersa;
     3771            pThis->pfnEncoder                   = Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething_OR_ViceVersa;
    37933772            pThis->iRegOp                       = 0;
    37943773            pThis->iRmOp                        = 1;
     
    40083987
    40093988        case BS3CG1ENC_MODRM_Mdq_WO_Vdq:
    4010             pThis->pfnEncoder                   = Bs3Cg1EncodeNext_MODRM_MsomethingWO_Vsomething_OR_ViceVersa;
     3989            pThis->pfnEncoder                   = Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething_OR_ViceVersa;
    40113990            pThis->iRmOp                        = 0;
    40123991            pThis->iRegOp                       = 1;
     
    40454024        case BS3CG1ENC_MODRM_Mps_WO_Vps:
    40464025        case BS3CG1ENC_MODRM_Mpd_WO_Vpd:
    4047             pThis->pfnEncoder                  = Bs3Cg1EncodeNext_MODRM_MsomethingWO_Vsomething_OR_ViceVersa;
     4026            pThis->pfnEncoder                  = Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething_OR_ViceVersa;
    40484027            pThis->iRmOp                       = 0;
    40494028            pThis->iRegOp                      = 1;
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