VirtualBox

Changeset 41748 in vbox for trunk/src/VBox/Disassembler


Ignore:
Timestamp:
Jun 15, 2012 2:57:28 AM (12 years ago)
Author:
vboxsync
Message:

DIS: bugfix in odd disStoreInstrBytesSlow path + static.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/DisasmCore.cpp

    r41747 r41748  
    517517/* Floating point opcode parsing */
    518518//*****************************************************************************
    519 unsigned ParseEscFP(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     519static unsigned ParseEscFP(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    520520{
    521521    int index;
     
    582582// Scale  Index  Base
    583583//*****************************************************************************
    584 void UseSIB(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     584static void UseSIB(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    585585{
    586586    unsigned regtype;
     
    631631//*****************************************************************************
    632632//*****************************************************************************
    633 unsigned ParseSIB(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     633static unsigned ParseSIB(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    634634{
    635635    unsigned size = sizeof(uint8_t);
     
    664664//*****************************************************************************
    665665//*****************************************************************************
    666 unsigned ParseSIB_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     666static unsigned ParseSIB_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    667667{
    668668    unsigned size = sizeof(uint8_t);
     
    698698// Mod    Reg/Opcode  R/M
    699699//*****************************************************************************
    700 unsigned UseModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     700static unsigned UseModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    701701{
    702702    unsigned vtype = OP_PARM_VTYPE(pParam->fParam);
     
    875875// Query the size of the ModRM parameters and fetch the immediate data (if any)
    876876//*****************************************************************************
    877 unsigned QueryModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu, unsigned *pSibInc)
     877static unsigned QueryModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu, unsigned *pSibInc)
    878878{
    879879    unsigned sibinc;
     
    958958// Query the size of the ModRM parameters and fetch the immediate data (if any)
    959959//*****************************************************************************
    960 unsigned QueryModRM_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu, unsigned *pSibInc)
     960static unsigned QueryModRM_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu, unsigned *pSibInc)
    961961{
    962962    unsigned sibinc;
     
    10331033//*****************************************************************************
    10341034//*****************************************************************************
    1035 unsigned ParseIllegal(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1035static unsigned ParseIllegal(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    10361036{
    10371037    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu);
     
    10411041//*****************************************************************************
    10421042//*****************************************************************************
    1043 unsigned ParseModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1043static unsigned ParseModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    10441044{
    10451045    unsigned size = sizeof(uint8_t);   //ModRM byte
     
    10871087//*****************************************************************************
    10881088//*****************************************************************************
    1089 unsigned ParseModRM_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1089static unsigned ParseModRM_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    10901090{
    10911091    unsigned size = sizeof(uint8_t);   //ModRM byte
     
    11341134//*****************************************************************************
    11351135//*****************************************************************************
    1136 unsigned ParseModFence(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1136static unsigned ParseModFence(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    11371137{
    11381138    ////AssertMsgFailed(("??\n"));
     
    11431143//*****************************************************************************
    11441144//*****************************************************************************
    1145 unsigned ParseImmByte(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1145static unsigned ParseImmByte(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    11461146{
    11471147    NOREF(pOp);
     
    11531153//*****************************************************************************
    11541154//*****************************************************************************
    1155 unsigned ParseImmByte_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1155static unsigned ParseImmByte_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    11561156{
    11571157    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu);
     
    11601160//*****************************************************************************
    11611161//*****************************************************************************
    1162 unsigned ParseImmByteSX(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1162static unsigned ParseImmByteSX(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    11631163{
    11641164    NOREF(pOp);
     
    11861186//*****************************************************************************
    11871187//*****************************************************************************
    1188 unsigned ParseImmByteSX_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1188static unsigned ParseImmByteSX_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    11891189{
    11901190    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu);
     
    11931193//*****************************************************************************
    11941194//*****************************************************************************
    1195 unsigned ParseImmUshort(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1195static unsigned ParseImmUshort(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    11961196{
    11971197    NOREF(pOp);
     
    12031203//*****************************************************************************
    12041204//*****************************************************************************
    1205 unsigned ParseImmUshort_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1205static unsigned ParseImmUshort_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    12061206{
    12071207    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu);
     
    12101210//*****************************************************************************
    12111211//*****************************************************************************
    1212 unsigned ParseImmUlong(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1212static unsigned ParseImmUlong(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    12131213{
    12141214    NOREF(pOp);
     
    12201220//*****************************************************************************
    12211221//*****************************************************************************
    1222 unsigned ParseImmUlong_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1222static unsigned ParseImmUlong_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    12231223{
    12241224    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu);
     
    12271227//*****************************************************************************
    12281228//*****************************************************************************
    1229 unsigned ParseImmQword(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1229static unsigned ParseImmQword(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    12301230{
    12311231    NOREF(pOp);
     
    12371237//*****************************************************************************
    12381238//*****************************************************************************
    1239 unsigned ParseImmQword_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1239static unsigned ParseImmQword_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    12401240{
    12411241    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu);
     
    12441244//*****************************************************************************
    12451245//*****************************************************************************
    1246 unsigned ParseImmV(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1246static unsigned ParseImmV(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    12471247{
    12481248    NOREF(pOp);
     
    12701270//*****************************************************************************
    12711271//*****************************************************************************
    1272 unsigned ParseImmV_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1272static unsigned ParseImmV_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    12731273{
    12741274    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam);
     
    12811281//*****************************************************************************
    12821282//*****************************************************************************
    1283 unsigned ParseImmZ(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1283static unsigned ParseImmZ(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    12841284{
    12851285    NOREF(pOp);
     
    13101310//*****************************************************************************
    13111311//*****************************************************************************
    1312 unsigned ParseImmZ_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1312static unsigned ParseImmZ_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    13131313{
    13141314    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam);
     
    13221322// Relative displacement for branches (rel. to next instruction)
    13231323//*****************************************************************************
    1324 unsigned ParseImmBRel(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1324static unsigned ParseImmBRel(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    13251325{
    13261326    NOREF(pOp);
     
    13331333// Relative displacement for branches (rel. to next instruction)
    13341334//*****************************************************************************
    1335 unsigned ParseImmBRel_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1335static unsigned ParseImmBRel_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    13361336{
    13371337    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu);
     
    13411341// Relative displacement for branches (rel. to next instruction)
    13421342//*****************************************************************************
    1343 unsigned ParseImmVRel(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1343static unsigned ParseImmVRel(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    13441344{
    13451345    NOREF(pOp);
     
    13691369// Relative displacement for branches (rel. to next instruction)
    13701370//*****************************************************************************
    1371 unsigned ParseImmVRel_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1371static unsigned ParseImmVRel_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    13721372{
    13731373    NOREF(uCodePtr); NOREF(pOp); NOREF(pParam);
     
    13791379//*****************************************************************************
    13801380//*****************************************************************************
    1381 unsigned ParseImmAddr(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1381static unsigned ParseImmAddr(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    13821382{
    13831383    if (pCpu->uAddrMode == DISCPUMODE_32BIT)
     
    14411441//*****************************************************************************
    14421442//*****************************************************************************
    1443 unsigned ParseImmAddr_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1443static unsigned ParseImmAddr_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    14441444{
    14451445    NOREF(uCodePtr); NOREF(pOp);
     
    14741474//*****************************************************************************
    14751475//*****************************************************************************
    1476 unsigned ParseImmAddrF(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1476static unsigned ParseImmAddrF(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    14771477{
    14781478    // immediate far pointers - only 16:16 or 16:32; determined by operand, *not* address size!
     
    14971497//*****************************************************************************
    14981498//*****************************************************************************
    1499 unsigned ParseImmAddrF_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1499static unsigned ParseImmAddrF_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    15001500{
    15011501    NOREF(uCodePtr); NOREF(pOp);
     
    15161516//*****************************************************************************
    15171517//*****************************************************************************
    1518 unsigned ParseFixedReg(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1518static unsigned ParseFixedReg(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    15191519{
    15201520    NOREF(uCodePtr);
     
    16171617//*****************************************************************************
    16181618//*****************************************************************************
    1619 unsigned ParseXv(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1619static unsigned ParseXv(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    16201620{
    16211621    NOREF(uCodePtr);
     
    16421642//*****************************************************************************
    16431643//*****************************************************************************
    1644 unsigned ParseXb(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1644static unsigned ParseXb(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    16451645{
    16461646    NOREF(uCodePtr); NOREF(pOp);
     
    16671667//*****************************************************************************
    16681668//*****************************************************************************
    1669 unsigned ParseYv(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1669static unsigned ParseYv(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    16701670{
    16711671    NOREF(uCodePtr);
     
    16921692//*****************************************************************************
    16931693//*****************************************************************************
    1694 unsigned ParseYb(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1694static unsigned ParseYb(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    16951695{
    16961696    NOREF(uCodePtr); NOREF(pOp);
     
    17171717//*****************************************************************************
    17181718//*****************************************************************************
    1719 unsigned ParseTwoByteEsc(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1719static unsigned ParseTwoByteEsc(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    17201720{
    17211721    PCDISOPCODE   pOpcode;
     
    17761776//*****************************************************************************
    17771777//*****************************************************************************
    1778 unsigned ParseThreeByteEsc4(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1778static unsigned ParseThreeByteEsc4(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    17791779{
    17801780    PCDISOPCODE   pOpcode;
     
    18371837//*****************************************************************************
    18381838//*****************************************************************************
    1839 unsigned ParseThreeByteEsc5(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1839static unsigned ParseThreeByteEsc5(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    18401840{
    18411841    PCDISOPCODE   pOpcode;
     
    18721872//*****************************************************************************
    18731873//*****************************************************************************
    1874 unsigned ParseNopPause(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1874static unsigned ParseNopPause(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    18751875{
    18761876    unsigned size = 0;
     
    18901890//*****************************************************************************
    18911891//*****************************************************************************
    1892 unsigned ParseImmGrpl(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1892static unsigned ParseImmGrpl(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    18931893{
    18941894    int idx = (pCpu->bOpCode - 0x80) * 8;
     
    19101910//*****************************************************************************
    19111911//*****************************************************************************
    1912 unsigned ParseShiftGrp2(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1912static unsigned ParseShiftGrp2(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    19131913{
    19141914    int idx;
     
    19501950//*****************************************************************************
    19511951//*****************************************************************************
    1952 unsigned ParseGrp3(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1952static unsigned ParseGrp3(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    19531953{
    19541954    int idx = (pCpu->bOpCode - 0xF6) * 8;
     
    19711971//*****************************************************************************
    19721972//*****************************************************************************
    1973 unsigned ParseGrp4(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1973static unsigned ParseGrp4(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    19741974{
    19751975    unsigned size = 0, modrm, reg;
     
    19911991//*****************************************************************************
    19921992//*****************************************************************************
    1993 unsigned ParseGrp5(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     1993static unsigned ParseGrp5(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    19941994{
    19951995    unsigned size = 0, modrm, reg;
     
    20152015//
    20162016//*****************************************************************************
    2017 unsigned Parse3DNow(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2017static unsigned Parse3DNow(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    20182018{
    20192019    unsigned size = 0, modrmsize;
     
    20512051//*****************************************************************************
    20522052//*****************************************************************************
    2053 unsigned ParseGrp6(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2053static unsigned ParseGrp6(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    20542054{
    20552055    unsigned size = 0, modrm, reg;
     
    20712071//*****************************************************************************
    20722072//*****************************************************************************
    2073 unsigned ParseGrp7(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2073static unsigned ParseGrp7(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    20742074{
    20752075    unsigned size = 0, modrm, reg, rm, mod;
     
    20992099//*****************************************************************************
    21002100//*****************************************************************************
    2101 unsigned ParseGrp8(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2101static unsigned ParseGrp8(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    21022102{
    21032103    unsigned size = 0, modrm, reg;
     
    21192119//*****************************************************************************
    21202120//*****************************************************************************
    2121 unsigned ParseGrp9(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2121static unsigned ParseGrp9(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    21222122{
    21232123    unsigned size = 0, modrm, reg;
     
    21392139//*****************************************************************************
    21402140//*****************************************************************************
    2141 unsigned ParseGrp10(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2141static unsigned ParseGrp10(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    21422142{
    21432143    unsigned size = 0, modrm, reg;
     
    21592159//*****************************************************************************
    21602160//*****************************************************************************
    2161 unsigned ParseGrp12(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2161static unsigned ParseGrp12(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    21622162{
    21632163    unsigned size = 0, modrm, reg;
     
    21812181//*****************************************************************************
    21822182//*****************************************************************************
    2183 unsigned ParseGrp13(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2183static unsigned ParseGrp13(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    21842184{
    21852185    unsigned size = 0, modrm, reg;
     
    22032203//*****************************************************************************
    22042204//*****************************************************************************
    2205 unsigned ParseGrp14(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2205static unsigned ParseGrp14(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    22062206{
    22072207    unsigned size = 0, modrm, reg;
     
    22252225//*****************************************************************************
    22262226//*****************************************************************************
    2227 unsigned ParseGrp15(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2227static unsigned ParseGrp15(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    22282228{
    22292229    unsigned size = 0, modrm, reg, mod, rm;
     
    22492249//*****************************************************************************
    22502250//*****************************************************************************
    2251 unsigned ParseGrp16(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
     2251static unsigned ParseGrp16(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)
    22522252{
    22532253    unsigned size = 0, modrm, reg;
     
    24072407    }
    24082408
    2409     if (off >= sizeof(cbInstr))
     2409    if (off >= sizeof(pCpu->abInstr))
    24102410    {
    24112411        /* The instruction is too long! This shouldn't happen. */
     
    24442444}
    24452445
    2446 DECLCALLBACK(int) disReadBytesDefault(PDISCPUSTATE pCpu, uint8_t *pbDst, RTUINTPTR uSrcAddr, uint32_t cbToRead)
     2446static DECLCALLBACK(int) disReadBytesDefault(PDISCPUSTATE pCpu, uint8_t *pbDst, RTUINTPTR uSrcAddr, uint32_t cbToRead)
    24472447{
    24482448#ifdef IN_RING0
     
    24592459/* Read functions for getting the opcode bytes */
    24602460//*****************************************************************************
    2461 uint8_t disReadByte(PDISCPUSTATE pCpu, RTUINTPTR uAddress)
     2461static uint8_t disReadByte(PDISCPUSTATE pCpu, RTUINTPTR uAddress)
    24622462{
    24632463    uint8_t bTemp = 0;
     
    24812481//*****************************************************************************
    24822482//*****************************************************************************
    2483 uint16_t disReadWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress)
     2483static uint16_t disReadWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress)
    24842484{
    24852485    RTUINT16U uTemp;
     
    25062506//*****************************************************************************
    25072507//*****************************************************************************
    2508 uint32_t disReadDWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress)
     2508static uint32_t disReadDWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress)
    25092509{
    25102510    RTUINT32U uTemp;
     
    25332533//*****************************************************************************
    25342534//*****************************************************************************
    2535 uint64_t disReadQWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress)
     2535static uint64_t disReadQWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress)
    25362536{
    25372537    RTUINT64U uTemp;
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