VirtualBox

vbox的更動 67103 路徑 trunk/src/VBox/ValidationKit


忽略:
時間撮記:
2017-5-25 下午10:38:22 (7 年 以前)
作者:
vboxsync
訊息:

bs3-cpu-generated-1: cleanups

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1-template.c

    r67102 r67103  
    19421942
    19431943
    1944 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vq_WO_Mq(PBS3CG1STATE pThis, unsigned iEncoding)
    1945 {
    1946     unsigned off;
    1947     if (iEncoding == 0)
    1948     {
    1949         pThis->aOperands[pThis->iRegOp].idxField = BS3CG1DST_XMM2_LO;
    1950         off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0));
    1951         off = Bs3Cfg1EncodeMemMod0Disp(pThis, false, off, 2 /*iReg*/, 8, 0, BS3CG1OPLOC_MEM);
    1952     }
    1953     else if (iEncoding == 1)
    1954     {
    1955         pThis->aOperands[pThis->iRegOp].idxField = BS3CG1DST_XMM3_LO;
    1956         off = Bs3Cg1InsertOpcodes(pThis, Bs3Cg1InsertReqPrefix(pThis, 0));
    1957         off = Bs3Cfg1EncodeMemMod0Disp(pThis, false, off, 3 /*iReg*/, 8, 1 /*cbMisalign*/, BS3CG1OPLOC_MEM);
    1958     }
    1959     else
    1960         return 0;
    1961     pThis->cbCurInstr = off;
    1962     return iEncoding + 1;
    1963 }
    1964 
    1965 
    19661944static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vsomething_Wsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    19671945{
     
    21102088
    21112089
    2112 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Msomething_WO_Vsomething(PBS3CG1STATE pThis, unsigned iEncoding)
     2090static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething(PBS3CG1STATE pThis, unsigned iEncoding)
    21132091{
    21142092    unsigned off;
     
    35813559    switch (pThis->enmEncoding)
    35823560    {
    3583         case BS3CG1ENC_MODRM_Vq_WO_Mq:
    3584             return Bs3Cg1EncodeNext_MODRM_Vq_WO_Mq(pThis, iEncoding);
    3585 
    35863561        case BS3CG1ENC_FIXED:
    35873562            return Bs3Cg1EncodeNext_FIXED(pThis, iEncoding);
     
    39473922
    39483923        case BS3CG1ENC_MODRM_VqHi_WO_Mq:
    3949             pThis->pfnEncoder                   = Bs3Cg1EncodeNext_MODRM_Msomething_WO_Vsomething;
     3924            pThis->pfnEncoder                   = Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething;
    39503925            pThis->iRegOp                       = 0;
    39513926            pThis->iRmOp                        = 1;
     
    39583933
    39593934        case BS3CG1ENC_MODRM_Vq_WO_Mq:
    3960             pThis->iRmOp             = 1;
    3961             pThis->iRegOp            = 0;
    3962             pThis->aOperands[0].cbOp = 8;
    3963             pThis->aOperands[1].cbOp = 8;
    3964             pThis->aOperands[0].enmLocation = BS3CG1OPLOC_CTX;
    3965             pThis->aOperands[1].enmLocation = BS3CG1OPLOC_MEM;
     3935            pThis->pfnEncoder                   = Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething;
     3936            pThis->iRegOp                       = 0;
     3937            pThis->iRmOp                        = 1;
     3938            pThis->aOperands[0].cbOp            = 8;
     3939            pThis->aOperands[1].cbOp            = 8;
     3940            pThis->aOperands[0].idxFieldBase    = BS3CG1DST_XMM0_LO;
     3941            pThis->aOperands[0].enmLocation     = BS3CG1OPLOC_CTX;
     3942            pThis->aOperands[1].enmLocation     = BS3CG1OPLOC_MEM;
    39663943            break;
    39673944
     
    40544031        case BS3CG1ENC_MODRM_Mq_WO_Vq:
    40554032        case BS3CG1ENC_MODRM_Mq_WO_VqHi:
    4056             pThis->pfnEncoder        = Bs3Cg1EncodeNext_MODRM_Msomething_WO_Vsomething;
     4033            pThis->pfnEncoder        = Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething;
    40574034            pThis->iRmOp             = 0;
    40584035            pThis->iRegOp            = 1;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette