Changeset 99775 in vbox for trunk/src/VBox/ValidationKit/utils/cpu
- Timestamp:
- May 12, 2023 12:21:58 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 157370
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/cpu/cidet-core.cpp
r98103 r99775 139 139 140 140 141 bool CidetInstrHasMrmMemOperand(PCCIDETINSTR pInstr)141 static bool CidetInstrHasMrmMemOperand(PCCIDETINSTR pInstr) 142 142 { 143 143 return CIDET_INSTR_TEST_OP_FLAG(pInstr, CIDET_OF_M_RM_ONLY_M); … … 145 145 146 146 147 bool CidetInstrHasMrmRegOperand(PCCIDETINSTR pInstr)147 static bool CidetInstrHasMrmRegOperand(PCCIDETINSTR pInstr) 148 148 { 149 149 return CIDET_INSTR_TEST_OP_FLAG(pInstr, CIDET_OF_M_RM_ONLY_R); … … 151 151 152 152 153 bool CidetInstrRespondsToOperandSizePrefixes(PCCIDETINSTR pInstr)153 static bool CidetInstrRespondsToOperandSizePrefixes(PCCIDETINSTR pInstr) 154 154 { 155 155 return CIDET_INSTR_TEST_OP_MASK_VALUE(pInstr, CIDET_OF_Z_MASK, CIDET_OF_Z_VAR_WDQ); … … 188 188 * @param va Arguments referenced in @a pszFormat. 189 189 */ 190 int CidetCoreSetErrorV(PCIDETCORE pThis, const char *pszFormat, va_list va)190 static int CidetCoreSetErrorV(PCIDETCORE pThis, const char *pszFormat, va_list va) 191 191 { 192 192 pThis->pfnFailure(pThis, pszFormat, va); … … 203 203 * @param ... Arguments referenced in @a pszFormat. 204 204 */ 205 bool CidetCoreSetError(PCIDETCORE pThis, const char *pszFormat, ...)205 static bool CidetCoreSetError(PCIDETCORE pThis, const char *pszFormat, ...) 206 206 { 207 207 va_list va; … … 220 220 * @param cbSignificant The number of significant bytes. 221 221 */ 222 int64_t CidetCoreGetRandS64(PCIDETCORE pThis, uint8_t cbSignificant)222 static int64_t CidetCoreGetRandS64(PCIDETCORE pThis, uint8_t cbSignificant) 223 223 { 224 224 int64_t iVal = RTRandAdvS64(pThis->hRand); … … 243 243 * @param cbSignificant The number of significant bytes. 244 244 */ 245 uint64_t CidetCoreGetRandU64(PCIDETCORE pThis, uint8_t cbSignificant)245 static uint64_t CidetCoreGetRandU64(PCIDETCORE pThis, uint8_t cbSignificant) 246 246 { 247 247 Assert(cbSignificant == 1 || cbSignificant == 2 || cbSignificant == 4 || cbSignificant == 8); … … 255 255 256 256 257 void CidetCoreInitializeCtxTemplate(PCIDETCORE pThis)257 static void CidetCoreInitializeCtxTemplate(PCIDETCORE pThis) 258 258 { 259 259 pThis->InTemplateCtx.rip = UINT64_MAX; … … 327 327 328 328 329 bool CidetCoreIsEncodingCompatibleWithInstruction(PCIDETCORE pThis)329 static bool CidetCoreIsEncodingCompatibleWithInstruction(PCIDETCORE pThis) 330 330 { 331 331 RT_NOREF_PV(pThis); … … 1227 1227 1228 1228 1229 bool CidetCoreSetupNextBaseEncoding(PCIDETCORE pThis)1229 static bool CidetCoreSetupNextBaseEncoding(PCIDETCORE pThis) 1230 1230 { 1231 1231 if (pThis->fUsesModRm) … … 1278 1278 1279 1279 1280 bool CidetCoreSetupFirstBaseEncoding(PCIDETCORE pThis)1280 static bool CidetCoreSetupFirstBaseEncoding(PCIDETCORE pThis) 1281 1281 { 1282 1282 /* … … 1331 1331 * @param pThis The core state structure. 1332 1332 */ 1333 bool CidetCoreSetupNextMemoryOperandConfig(PCIDETCORE pThis)1333 static bool CidetCoreSetupNextMemoryOperandConfig(PCIDETCORE pThis) 1334 1334 { 1335 1335 RT_NOREF_PV(pThis); … … 1344 1344 * @param pThis The core state structure. 1345 1345 */ 1346 bool CidetCoreSetupFirstMemoryOperandConfig(PCIDETCORE pThis)1346 static bool CidetCoreSetupFirstMemoryOperandConfig(PCIDETCORE pThis) 1347 1347 { 1348 1348 pThis->cMemoryOperands = 0; … … 1384 1384 * @param pThis The core state structure. 1385 1385 */ 1386 bool CidetCoreSetupNextCodeBufferConfig(PCIDETCORE pThis)1386 static bool CidetCoreSetupNextCodeBufferConfig(PCIDETCORE pThis) 1387 1387 { 1388 1388 RT_NOREF_PV(pThis); … … 1397 1397 * @param pThis The core state structure. 1398 1398 */ 1399 bool CidetCoreSetupFirstCodeBufferConfig(PCIDETCORE pThis)1399 static bool CidetCoreSetupFirstCodeBufferConfig(PCIDETCORE pThis) 1400 1400 { 1401 1401 Assert(pThis->cCodeBufConfigs > 0); … … 1476 1476 1477 1477 1478 bool CideCoreSetInstruction(PCIDETCORE pThis, PCCIDETINSTR pInstr)1478 static bool CideCoreSetInstruction(PCIDETCORE pThis, PCCIDETINSTR pInstr) 1479 1479 { 1480 1480 AssertReleaseMsgReturn(RT_VALID_PTR(pInstr), ("%p\n", pInstr), false); … … 1568 1568 1569 1569 1570 bool CidetCoreSetupInOut(PCIDETCORE pThis)1570 static bool CidetCoreSetupInOut(PCIDETCORE pThis) 1571 1571 { 1572 1572 /* … … 1886 1886 * @param pThis The core state structure (for context). 1887 1887 */ 1888 bool CidetCoreAssembleLength(PCIDETCORE pThis)1888 static bool CidetCoreAssembleLength(PCIDETCORE pThis) 1889 1889 { 1890 1890 uint8_t off = 0; … … 2004 2004 * @param pThis The core state structure (for context). 2005 2005 */ 2006 bool CidetCoreAssemble(PCIDETCORE pThis)2006 static bool CidetCoreAssemble(PCIDETCORE pThis) 2007 2007 { 2008 2008 uint8_t off = 0; … … 2113 2113 2114 2114 2115 bool CidetCoreReInitCodeBuf(PCIDETCORE pThis)2115 static bool CidetCoreReInitCodeBuf(PCIDETCORE pThis) 2116 2116 { 2117 2117 /* … … 2161 2161 2162 2162 2163 bool CidetCoreSetupCodeBuf(PCIDETCORE pThis, unsigned iSubTest)2163 static bool CidetCoreSetupCodeBuf(PCIDETCORE pThis, unsigned iSubTest) 2164 2164 { 2165 2165 if (CidetCoreAssemble(pThis)) … … 2202 2202 * @param pThis The core state structure. 2203 2203 */ 2204 bool CidetCoreCheckResults(PCIDETCORE pThis)2204 static bool CidetCoreCheckResults(PCIDETCORE pThis) 2205 2205 { 2206 2206 if (memcmp(&pThis->ActualCtx, &pThis->ExpectedCtx, CIDETCPUCTX_COMPARE_SIZE) == 0) … … 2265 2265 2266 2266 2267 bool CidetCoreTest_Basic(PCIDETCORE pThis)2267 static bool CidetCoreTest_Basic(PCIDETCORE pThis) 2268 2268 { 2269 2269 /*
Note:
See TracChangeset
for help on using the changeset viewer.