Test upstream RISC-V SMP candidates on HERE VP
Build the SMP library and Moonlight board support against a selectable ThreadX source tree. Keep the pinned regression matrix and add RV32GC and RV64GC context tests. Adapt the direct timeout fixture to the RV64 timer extension and give timing-sensitive cases more phase coverage on HERE VP.
This commit is contained in:
1 parent
f3dc14193c
commit
054251f810
12 files changed
+363
-251
No files matched your search
@@ -217,7 +217,8 @@ function(add_threadx_regression_test TEST_SOURCE)
|
||||
SOURCES ${TEST_SOURCE}
|
||||
)
|
||||
target_compile_options(${TEST_NAME} PRIVATE -include stdlib.h)
|
||||
if(TEST_NAME STREQUAL "threadx_thread_basic_execution_test")
|
||||
if(TEST_NAME STREQUAL "threadx_thread_basic_execution_test" OR
|
||||
TEST_NAME STREQUAL "threadx_thread_delayed_suspension_test")
|
||||
target_sources(${TEST_NAME} PRIVATE vp_timer_jitter.c)
|
||||
target_link_options(${TEST_NAME} PRIVATE -Wl,--wrap=_tx_timer_interrupt)
|
||||
endif()
|
||||
|
||||
@@ -6,11 +6,11 @@ void __wrap__tx_timer_interrupt(void)
|
||||
{
|
||||
static uint32_t sequence = 1;
|
||||
|
||||
/* Vary each interval by one ACLINT count so the periodic ISR samples
|
||||
different points in the test thread's preemption-disable loop. */
|
||||
/* Vary the interval over 17 ACLINT counts, centred on the normal tick,
|
||||
so the ISR samples more than two phases of the test thread's loop. */
|
||||
sequence = sequence * 1664525u + 1013904223u;
|
||||
uint64_t next = get_aclint_mtimecmp(aclint);
|
||||
set_aclint_mtimecmp(aclint, (sequence >> 31) ? next + 1 : next - 1);
|
||||
set_aclint_mtimecmp(aclint, next - 8 + (sequence >> 16) % 17u);
|
||||
|
||||
__real__tx_timer_interrupt();
|
||||
}
|
||||
Reference in new issue
Block a user