Changeset 41748 in vbox for trunk/src/VBox/Disassembler
- Timestamp:
- Jun 15, 2012 2:57:28 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/DisasmCore.cpp
r41747 r41748 517 517 /* Floating point opcode parsing */ 518 518 //***************************************************************************** 519 unsigned ParseEscFP(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)519 static unsigned ParseEscFP(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 520 520 { 521 521 int index; … … 582 582 // Scale Index Base 583 583 //***************************************************************************** 584 void UseSIB(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)584 static void UseSIB(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 585 585 { 586 586 unsigned regtype; … … 631 631 //***************************************************************************** 632 632 //***************************************************************************** 633 unsigned ParseSIB(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)633 static unsigned ParseSIB(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 634 634 { 635 635 unsigned size = sizeof(uint8_t); … … 664 664 //***************************************************************************** 665 665 //***************************************************************************** 666 unsigned ParseSIB_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)666 static unsigned ParseSIB_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 667 667 { 668 668 unsigned size = sizeof(uint8_t); … … 698 698 // Mod Reg/Opcode R/M 699 699 //***************************************************************************** 700 unsigned UseModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)700 static unsigned UseModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 701 701 { 702 702 unsigned vtype = OP_PARM_VTYPE(pParam->fParam); … … 875 875 // Query the size of the ModRM parameters and fetch the immediate data (if any) 876 876 //***************************************************************************** 877 unsigned QueryModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu, unsigned *pSibInc)877 static unsigned QueryModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu, unsigned *pSibInc) 878 878 { 879 879 unsigned sibinc; … … 958 958 // Query the size of the ModRM parameters and fetch the immediate data (if any) 959 959 //***************************************************************************** 960 unsigned QueryModRM_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu, unsigned *pSibInc)960 static unsigned QueryModRM_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu, unsigned *pSibInc) 961 961 { 962 962 unsigned sibinc; … … 1033 1033 //***************************************************************************** 1034 1034 //***************************************************************************** 1035 unsigned ParseIllegal(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1035 static unsigned ParseIllegal(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1036 1036 { 1037 1037 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu); … … 1041 1041 //***************************************************************************** 1042 1042 //***************************************************************************** 1043 unsigned ParseModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1043 static unsigned ParseModRM(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1044 1044 { 1045 1045 unsigned size = sizeof(uint8_t); //ModRM byte … … 1087 1087 //***************************************************************************** 1088 1088 //***************************************************************************** 1089 unsigned ParseModRM_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1089 static unsigned ParseModRM_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1090 1090 { 1091 1091 unsigned size = sizeof(uint8_t); //ModRM byte … … 1134 1134 //***************************************************************************** 1135 1135 //***************************************************************************** 1136 unsigned ParseModFence(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1136 static unsigned ParseModFence(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1137 1137 { 1138 1138 ////AssertMsgFailed(("??\n")); … … 1143 1143 //***************************************************************************** 1144 1144 //***************************************************************************** 1145 unsigned ParseImmByte(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1145 static unsigned ParseImmByte(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1146 1146 { 1147 1147 NOREF(pOp); … … 1153 1153 //***************************************************************************** 1154 1154 //***************************************************************************** 1155 unsigned ParseImmByte_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1155 static unsigned ParseImmByte_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1156 1156 { 1157 1157 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu); … … 1160 1160 //***************************************************************************** 1161 1161 //***************************************************************************** 1162 unsigned ParseImmByteSX(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1162 static unsigned ParseImmByteSX(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1163 1163 { 1164 1164 NOREF(pOp); … … 1186 1186 //***************************************************************************** 1187 1187 //***************************************************************************** 1188 unsigned ParseImmByteSX_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1188 static unsigned ParseImmByteSX_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1189 1189 { 1190 1190 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu); … … 1193 1193 //***************************************************************************** 1194 1194 //***************************************************************************** 1195 unsigned ParseImmUshort(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1195 static unsigned ParseImmUshort(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1196 1196 { 1197 1197 NOREF(pOp); … … 1203 1203 //***************************************************************************** 1204 1204 //***************************************************************************** 1205 unsigned ParseImmUshort_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1205 static unsigned ParseImmUshort_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1206 1206 { 1207 1207 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu); … … 1210 1210 //***************************************************************************** 1211 1211 //***************************************************************************** 1212 unsigned ParseImmUlong(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1212 static unsigned ParseImmUlong(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1213 1213 { 1214 1214 NOREF(pOp); … … 1220 1220 //***************************************************************************** 1221 1221 //***************************************************************************** 1222 unsigned ParseImmUlong_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1222 static unsigned ParseImmUlong_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1223 1223 { 1224 1224 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu); … … 1227 1227 //***************************************************************************** 1228 1228 //***************************************************************************** 1229 unsigned ParseImmQword(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1229 static unsigned ParseImmQword(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1230 1230 { 1231 1231 NOREF(pOp); … … 1237 1237 //***************************************************************************** 1238 1238 //***************************************************************************** 1239 unsigned ParseImmQword_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1239 static unsigned ParseImmQword_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1240 1240 { 1241 1241 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu); … … 1244 1244 //***************************************************************************** 1245 1245 //***************************************************************************** 1246 unsigned ParseImmV(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1246 static unsigned ParseImmV(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1247 1247 { 1248 1248 NOREF(pOp); … … 1270 1270 //***************************************************************************** 1271 1271 //***************************************************************************** 1272 unsigned ParseImmV_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1272 static unsigned ParseImmV_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1273 1273 { 1274 1274 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); … … 1281 1281 //***************************************************************************** 1282 1282 //***************************************************************************** 1283 unsigned ParseImmZ(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1283 static unsigned ParseImmZ(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1284 1284 { 1285 1285 NOREF(pOp); … … 1310 1310 //***************************************************************************** 1311 1311 //***************************************************************************** 1312 unsigned ParseImmZ_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1312 static unsigned ParseImmZ_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1313 1313 { 1314 1314 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); … … 1322 1322 // Relative displacement for branches (rel. to next instruction) 1323 1323 //***************************************************************************** 1324 unsigned ParseImmBRel(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1324 static unsigned ParseImmBRel(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1325 1325 { 1326 1326 NOREF(pOp); … … 1333 1333 // Relative displacement for branches (rel. to next instruction) 1334 1334 //***************************************************************************** 1335 unsigned ParseImmBRel_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1335 static unsigned ParseImmBRel_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1336 1336 { 1337 1337 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); NOREF(pCpu); … … 1341 1341 // Relative displacement for branches (rel. to next instruction) 1342 1342 //***************************************************************************** 1343 unsigned ParseImmVRel(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1343 static unsigned ParseImmVRel(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1344 1344 { 1345 1345 NOREF(pOp); … … 1369 1369 // Relative displacement for branches (rel. to next instruction) 1370 1370 //***************************************************************************** 1371 unsigned ParseImmVRel_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1371 static unsigned ParseImmVRel_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1372 1372 { 1373 1373 NOREF(uCodePtr); NOREF(pOp); NOREF(pParam); … … 1379 1379 //***************************************************************************** 1380 1380 //***************************************************************************** 1381 unsigned ParseImmAddr(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1381 static unsigned ParseImmAddr(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1382 1382 { 1383 1383 if (pCpu->uAddrMode == DISCPUMODE_32BIT) … … 1441 1441 //***************************************************************************** 1442 1442 //***************************************************************************** 1443 unsigned ParseImmAddr_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1443 static unsigned ParseImmAddr_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1444 1444 { 1445 1445 NOREF(uCodePtr); NOREF(pOp); … … 1474 1474 //***************************************************************************** 1475 1475 //***************************************************************************** 1476 unsigned ParseImmAddrF(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1476 static unsigned ParseImmAddrF(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1477 1477 { 1478 1478 // immediate far pointers - only 16:16 or 16:32; determined by operand, *not* address size! … … 1497 1497 //***************************************************************************** 1498 1498 //***************************************************************************** 1499 unsigned ParseImmAddrF_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1499 static unsigned ParseImmAddrF_SizeOnly(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1500 1500 { 1501 1501 NOREF(uCodePtr); NOREF(pOp); … … 1516 1516 //***************************************************************************** 1517 1517 //***************************************************************************** 1518 unsigned ParseFixedReg(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1518 static unsigned ParseFixedReg(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1519 1519 { 1520 1520 NOREF(uCodePtr); … … 1617 1617 //***************************************************************************** 1618 1618 //***************************************************************************** 1619 unsigned ParseXv(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1619 static unsigned ParseXv(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1620 1620 { 1621 1621 NOREF(uCodePtr); … … 1642 1642 //***************************************************************************** 1643 1643 //***************************************************************************** 1644 unsigned ParseXb(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1644 static unsigned ParseXb(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1645 1645 { 1646 1646 NOREF(uCodePtr); NOREF(pOp); … … 1667 1667 //***************************************************************************** 1668 1668 //***************************************************************************** 1669 unsigned ParseYv(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1669 static unsigned ParseYv(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1670 1670 { 1671 1671 NOREF(uCodePtr); … … 1692 1692 //***************************************************************************** 1693 1693 //***************************************************************************** 1694 unsigned ParseYb(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1694 static unsigned ParseYb(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1695 1695 { 1696 1696 NOREF(uCodePtr); NOREF(pOp); … … 1717 1717 //***************************************************************************** 1718 1718 //***************************************************************************** 1719 unsigned ParseTwoByteEsc(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1719 static unsigned ParseTwoByteEsc(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1720 1720 { 1721 1721 PCDISOPCODE pOpcode; … … 1776 1776 //***************************************************************************** 1777 1777 //***************************************************************************** 1778 unsigned ParseThreeByteEsc4(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1778 static unsigned ParseThreeByteEsc4(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1779 1779 { 1780 1780 PCDISOPCODE pOpcode; … … 1837 1837 //***************************************************************************** 1838 1838 //***************************************************************************** 1839 unsigned ParseThreeByteEsc5(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1839 static unsigned ParseThreeByteEsc5(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1840 1840 { 1841 1841 PCDISOPCODE pOpcode; … … 1872 1872 //***************************************************************************** 1873 1873 //***************************************************************************** 1874 unsigned ParseNopPause(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1874 static unsigned ParseNopPause(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1875 1875 { 1876 1876 unsigned size = 0; … … 1890 1890 //***************************************************************************** 1891 1891 //***************************************************************************** 1892 unsigned ParseImmGrpl(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1892 static unsigned ParseImmGrpl(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1893 1893 { 1894 1894 int idx = (pCpu->bOpCode - 0x80) * 8; … … 1910 1910 //***************************************************************************** 1911 1911 //***************************************************************************** 1912 unsigned ParseShiftGrp2(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1912 static unsigned ParseShiftGrp2(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1913 1913 { 1914 1914 int idx; … … 1950 1950 //***************************************************************************** 1951 1951 //***************************************************************************** 1952 unsigned ParseGrp3(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1952 static unsigned ParseGrp3(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1953 1953 { 1954 1954 int idx = (pCpu->bOpCode - 0xF6) * 8; … … 1971 1971 //***************************************************************************** 1972 1972 //***************************************************************************** 1973 unsigned ParseGrp4(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1973 static unsigned ParseGrp4(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1974 1974 { 1975 1975 unsigned size = 0, modrm, reg; … … 1991 1991 //***************************************************************************** 1992 1992 //***************************************************************************** 1993 unsigned ParseGrp5(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)1993 static unsigned ParseGrp5(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 1994 1994 { 1995 1995 unsigned size = 0, modrm, reg; … … 2015 2015 // 2016 2016 //***************************************************************************** 2017 unsigned Parse3DNow(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2017 static unsigned Parse3DNow(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2018 2018 { 2019 2019 unsigned size = 0, modrmsize; … … 2051 2051 //***************************************************************************** 2052 2052 //***************************************************************************** 2053 unsigned ParseGrp6(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2053 static unsigned ParseGrp6(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2054 2054 { 2055 2055 unsigned size = 0, modrm, reg; … … 2071 2071 //***************************************************************************** 2072 2072 //***************************************************************************** 2073 unsigned ParseGrp7(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2073 static unsigned ParseGrp7(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2074 2074 { 2075 2075 unsigned size = 0, modrm, reg, rm, mod; … … 2099 2099 //***************************************************************************** 2100 2100 //***************************************************************************** 2101 unsigned ParseGrp8(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2101 static unsigned ParseGrp8(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2102 2102 { 2103 2103 unsigned size = 0, modrm, reg; … … 2119 2119 //***************************************************************************** 2120 2120 //***************************************************************************** 2121 unsigned ParseGrp9(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2121 static unsigned ParseGrp9(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2122 2122 { 2123 2123 unsigned size = 0, modrm, reg; … … 2139 2139 //***************************************************************************** 2140 2140 //***************************************************************************** 2141 unsigned ParseGrp10(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2141 static unsigned ParseGrp10(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2142 2142 { 2143 2143 unsigned size = 0, modrm, reg; … … 2159 2159 //***************************************************************************** 2160 2160 //***************************************************************************** 2161 unsigned ParseGrp12(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2161 static unsigned ParseGrp12(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2162 2162 { 2163 2163 unsigned size = 0, modrm, reg; … … 2181 2181 //***************************************************************************** 2182 2182 //***************************************************************************** 2183 unsigned ParseGrp13(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2183 static unsigned ParseGrp13(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2184 2184 { 2185 2185 unsigned size = 0, modrm, reg; … … 2203 2203 //***************************************************************************** 2204 2204 //***************************************************************************** 2205 unsigned ParseGrp14(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2205 static unsigned ParseGrp14(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2206 2206 { 2207 2207 unsigned size = 0, modrm, reg; … … 2225 2225 //***************************************************************************** 2226 2226 //***************************************************************************** 2227 unsigned ParseGrp15(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2227 static unsigned ParseGrp15(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2228 2228 { 2229 2229 unsigned size = 0, modrm, reg, mod, rm; … … 2249 2249 //***************************************************************************** 2250 2250 //***************************************************************************** 2251 unsigned ParseGrp16(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu)2251 static unsigned ParseGrp16(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 2252 2252 { 2253 2253 unsigned size = 0, modrm, reg; … … 2407 2407 } 2408 2408 2409 if (off >= sizeof( cbInstr))2409 if (off >= sizeof(pCpu->abInstr)) 2410 2410 { 2411 2411 /* The instruction is too long! This shouldn't happen. */ … … 2444 2444 } 2445 2445 2446 DECLCALLBACK(int) disReadBytesDefault(PDISCPUSTATE pCpu, uint8_t *pbDst, RTUINTPTR uSrcAddr, uint32_t cbToRead)2446 static DECLCALLBACK(int) disReadBytesDefault(PDISCPUSTATE pCpu, uint8_t *pbDst, RTUINTPTR uSrcAddr, uint32_t cbToRead) 2447 2447 { 2448 2448 #ifdef IN_RING0 … … 2459 2459 /* Read functions for getting the opcode bytes */ 2460 2460 //***************************************************************************** 2461 uint8_t disReadByte(PDISCPUSTATE pCpu, RTUINTPTR uAddress)2461 static uint8_t disReadByte(PDISCPUSTATE pCpu, RTUINTPTR uAddress) 2462 2462 { 2463 2463 uint8_t bTemp = 0; … … 2481 2481 //***************************************************************************** 2482 2482 //***************************************************************************** 2483 uint16_t disReadWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress)2483 static uint16_t disReadWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress) 2484 2484 { 2485 2485 RTUINT16U uTemp; … … 2506 2506 //***************************************************************************** 2507 2507 //***************************************************************************** 2508 uint32_t disReadDWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress)2508 static uint32_t disReadDWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress) 2509 2509 { 2510 2510 RTUINT32U uTemp; … … 2533 2533 //***************************************************************************** 2534 2534 //***************************************************************************** 2535 uint64_t disReadQWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress)2535 static uint64_t disReadQWord(PDISCPUSTATE pCpu, RTUINTPTR uAddress) 2536 2536 { 2537 2537 RTUINT64U uTemp;
Note:
See TracChangeset
for help on using the changeset viewer.