- Timestamp:
- Mar 26, 2024 4:06:07 PM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 162459
- Location:
- trunk/src/VBox/ValidationKit/bootsectors
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-instr-2-template.c
r104015 r104066 970 970 uint64_t RT_FAR * const puMemPtrRegExpt= paTests[iTest].fDstMem ? &(&CtxExpect.rax)[idxDstReg & 15].u : NULL; \ 971 971 unsigned cRecompOuter = 0; \ 972 unsigned const cMaxRecompOuter= cBitsImm != 8 ? BS3_THRESHOLD_NATIVE_RECOMPILER+ cTestData : 1; \973 unsigned const cMaxRecompInner= cBitsImm != 8 ? 1 : BS3_THRESHOLD_NATIVE_RECOMPILER; \972 unsigned const cMaxRecompOuter= cBitsImm != 8 ? g_cBs3ThresholdNativeRecompiler + cTestData : 1; \ 973 unsigned const cMaxRecompInner= cBitsImm != 8 ? 1 : g_cBs3ThresholdNativeRecompiler; \ 974 974 /*Bs3TestPrintf("\n"#a_cBits ": pfnWorker=%p cBitsImm=%d (%d)\n", paTests[iTest].pfnWorker, cBitsImm, paTests[iTest].cBitsImm);*/ \ 975 975 \ -
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-instr-3.c32
r104060 r104066 771 771 uint16_t idTestStep = bRing * 10000 + iCfg * 100 + iTest * 10; 772 772 unsigned cRecompRuns = 0; 773 unsigned const cMaxRecompRuns = g_cBs3ThresholdNativeRecompiler + cValues; 773 774 unsigned iVal; 774 775 … … 795 796 * Iterate the test values and do the actual testing. 796 797 */ 797 while (cRecompRuns < BS3_THRESHOLD_NATIVE_RECOMPILER + cValues)798 while (cRecompRuns < cMaxRecompRuns) 798 799 for (iVal = 0; iVal < cValues; iVal++, idTestStep++, cRecompRuns++) 799 800 { … … 9260 9261 uint16_t idTestStep = bRing * 10000 + iCfg * 100 + iTest * 10; 9261 9262 unsigned cRecompRuns = 0; 9263 unsigned const cMaxRecompRuns = g_cBs3ThresholdNativeRecompiler + cValues; 9262 9264 unsigned iVal; 9263 9265 … … 9284 9286 * Iterate the test values and do the actual testing. 9285 9287 */ 9286 while (cRecompRuns < BS3_THRESHOLD_NATIVE_RECOMPILER + cValues)9288 while (cRecompRuns < cMaxRecompRuns) 9287 9289 for (iVal = 0; iVal < cValues; iVal++, idTestStep++, cRecompRuns++) 9288 9290 { … … 10128 10130 uint16_t idTestStep = bRing * 10000 + iCfg * 100 + iTest * 10; 10129 10131 unsigned cRecompRuns = 0; 10132 unsigned const cMaxRecompRuns = g_cBs3ThresholdNativeRecompiler + cValues; 10130 10133 unsigned iVal; 10131 10134 … … 10152 10155 * Iterate the test values and do the actual testing. 10153 10156 */ 10154 while (cRecompRuns < BS3_THRESHOLD_NATIVE_RECOMPILER + cValues)10157 while (cRecompRuns < cMaxRecompRuns) 10155 10158 for (iVal = 0; iVal < cValues; iVal++, idTestStep++, cRecompRuns++) 10156 10159 { … … 12430 12433 uint16_t idTestStep = bRing * 10000 + iCfg * 100 + iTest * 10; 12431 12434 unsigned cRecompRuns = 0; 12435 unsigned const cMaxRecompRuns = g_cBs3ThresholdNativeRecompiler + cValues * 2; 12432 12436 unsigned iVal; 12433 12437 … … 12454 12458 * Iterate the test values and do the actual testing. 12455 12459 */ 12456 while (cRecompRuns < BS3_THRESHOLD_NATIVE_RECOMPILER + cValues * 2)12460 while (cRecompRuns < cMaxRecompRuns) 12457 12461 for (iVal = 0; iVal < cValues; iVal++, idTestStep++, cRecompRuns++) 12458 12462 { … … 12771 12775 uint16_t idTestStep = bRing * 10000 + iCfg * 100 + iTest * 10; 12772 12776 unsigned cRecompRuns = 0; 12777 unsigned const cMaxRecompRuns = g_cBs3ThresholdNativeRecompiler + cValues; 12773 12778 unsigned iVal; 12774 12779 … … 12795 12800 * Iterate the test values and do the actual testing. 12796 12801 */ 12797 while (cRecompRuns < BS3_THRESHOLD_NATIVE_RECOMPILER + cValues)12802 while (cRecompRuns < cMaxRecompRuns) 12798 12803 for (iVal = 0; iVal < cValues; iVal++, idTestStep++, cRecompRuns++) 12799 12804 { … … 13350 13355 uint16_t idTestStep = bRing * 10000 + iCfg * 100 + iTest * 10; 13351 13356 unsigned cRecompRuns = 0; 13357 unsigned const cMaxRecompRuns = g_cBs3ThresholdNativeRecompiler + cValues; 13352 13358 unsigned iVal; 13353 13359 … … 13374 13380 * Iterate the test values and do the actual testing. 13375 13381 */ 13376 while (cRecompRuns < BS3_THRESHOLD_NATIVE_RECOMPILER + cValues)13382 while (cRecompRuns < cMaxRecompRuns) 13377 13383 for (iVal = 0; iVal < cValues; iVal++, idTestStep++, cRecompRuns++) 13378 13384 { -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestData.c
r103262 r104066 85 85 uint16_t g_usBs3TestStep; 86 86 87 /** The host configurable BS3_THRESHOLD_NATIVE_RECOMPILER value. */ 88 uint16_t g_cBs3ThresholdNativeRecompiler = BS3_THRESHOLD_NATIVE_RECOMPILER; 89 90 87 91 /** VMMDEV_TESTING_UNIT_XXX -> string */ 88 92 char const g_aszBs3TestUnitNames[][12] = -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestInit.c
r98103 r104066 41 41 #include "bs3kit-template-header.h" 42 42 #include "bs3-cmn-test.h" 43 #include <iprt/asm-amd64-x86.h> 43 44 44 45 … … 63 64 g_cusBs3SubTestsFailed = 0; 64 65 g_fbBs3VMMDevTesting = bs3TestIsVmmDevTestingPresent(); 66 if (g_fbBs3VMMDevTesting) 67 { 68 uint16_t uValue; 69 #if ARCH_BITS == 16 70 ASMOutU16(VMMDEV_TESTING_IOPORT_CMD, (uint16_t)VMMDEV_TESTING_CMD_QUERY_CFG); 71 #else 72 ASMOutU32(VMMDEV_TESTING_IOPORT_CMD, VMMDEV_TESTING_CMD_QUERY_CFG); 73 #endif 74 ASMOutU16(VMMDEV_TESTING_IOPORT_DATA, VMMDEV_TESTING_CFG_THRESHOLD_NATIVE_RECOMPILER); 75 uValue = ASMInU16(VMMDEV_TESTING_IOPORT_DATA); 76 Bs3TestPrintf("VMMDEV_TESTING_CFG_THRESHOLD_NATIVE_RECOMPILER=%RU16\n", uValue); 77 if (uValue > 0 && uValue < 1024) 78 g_cBs3ThresholdNativeRecompiler = uValue; 79 } 65 80 66 81 /* -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r103867 r104066 195 195 * 196 196 * @{ */ 197 198 /** Test repetitions necessary to make sure of engaging native recompilation.199 * @note See iemTbCacheLookup() for the actual constant. */200 #define BS3_THRESHOLD_NATIVE_RECOMPILER 18201 197 202 198 … … 3617 3613 extern uint16_t g_usBs3TestStep; 3618 3614 3615 /** Test repetitions necessary to make sure of engaging native recompilation. 3616 * @note See iemTbCacheLookup() for the actual constant. */ 3617 #define BS3_THRESHOLD_NATIVE_RECOMPILER 18 3618 3619 /** The host configurable BS3_THRESHOLD_NATIVE_RECOMPILER value. 3620 * The host configuration is read by Bs3TestInit, before that it has the same 3621 * value as the compiletime constant. */ 3622 extern uint16_t g_cBs3ThresholdNativeRecompiler; 3623 3619 3624 /** 3620 3625 * Equivalent to RTTestCreate + RTTestBanner.
Note:
See TracChangeset
for help on using the changeset viewer.