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:
alex committed 2026-11-27 11:13:06 +01:00
1 parent f3dc14193c
commit 054251f810
12 files changed
+363 -251

No files matched your search

+18
View File
@@ -37,6 +37,24 @@ cmake --build build/Debug32/test/threadx/ --parallel
ctest --test-dir build/Debug32/test/threadx --output-on-failure --parallel 4
```
To validate a ThreadX checkout that contains the GNU RISC-V SMP ports, pass its
absolute path as `THREADX_SMP_SOURCE_DIR`. The SMP library, demo, and regression
suite all use that checkout. The two context presets run focused hard-float
tests on a four-hart HERE VP.
```bash
cd test/smp
cmake --preset Context64 \
-DTHREADX_TEST_SIMULATOR=/opt/riscv-vp/bin/riscv-vp \
-DTHREADX_SMP_SOURCE_DIR=/path/to/threadx
cmake --build --preset Context64 --parallel
ctest --test-dir ../../build/Context64/test/smp -R '^vp_smp_context$' --output-on-failure
```
Use `Context32` for RV32GC. The regular SMP presets run the integer regression
suite. Jenkins runs both suites on the pinned HERE VP image and uses the latest
image as a canary when it differs.
## Demo Applications
The repository currently provides three demo applications: