Repository navigation
Sync riscv64/loongarch64 interp impl with arm64 - #137337
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @agocke |
|
Tagging subscribers to this area: @JulieLeeMSFT, @BrzVlad, @janvorli |
|
@shushanhf, FYI, I have only tested on riscv64 machine. To test on LA64 machine, follow Building Tests with Bootstrapping with B=$(pwd)/artifacts/tests/coreclr/linux.loongarch64.Debug
export CORE_ROOT=$B/Tests/Core_Root DOTNET_TieredCompilation=0
for mode in jit 1 3; do
for t in $(find $B/JIT $B/Interop $B/async -name '*.sh' | sort); do
out=$(dirname $t)/out-mode$mode.txt
(
cd $(dirname $t)
# test scripts skip themselves whenever DOTNET_InterpMode is set, even to 0
if [ $mode = jit ]; then unset DOTNET_InterpMode; else export DOTNET_InterpMode=$mode; fi
timeout 3600 bash $t > $out 2>&1 < /dev/null
)
if grep -q 'END EXECUTION - PASSED' $out; then r=PASS
elif grep -q 'SKIPPING EXECUTION' $out; then r=SKIP
else r=FAIL; fi
echo "$r mode=$mode ${t#$B/}"
done
done | tee interp-results.txtEverything is expected to pass; |
…cv64/loongarch64 Co-authored-by: Cursor <[email protected]>
|
2afa39f was needed for cDAC tests (PR upcoming for RV64/LA64) along with microsoft/clrmd#1527. |
|
Thanks very much! |
Passed on LA64. |
|
Thanks for testing! :) |
|
linux_musl-x64 failure is unrelated infra issue |
|
/ba-g Intermittent mcr.microsoft.com availability issues |
…37365) Brings the riscv64/loongarch64 cDAC on par with arm64 and fixes interpreter stack walking found while running the cDAC stress tests (`DOTNET_CdacStress=0x101`/`0x201`) on riscv64 hardware. riscv64/loongarch64: - `RISCV64Context` was missing `R0`, so every GPR and `Pc` was read 8 bytes off the native `CONTEXT` (all GCREFS stress runs failed). - Implement RISC-V/LoongArch64 FP struct classification (`TryGetFpStructInRegistersClassification` in RuntimeTypeSystem, mirroring `MethodTable::GetFpStructInRegistersInfo`) instead of throwing `NotImplementedException` from the calling convention. - Set the first-arg register to the next `InterpreterFrame` in `InlinedCallFrame` handling, null unwind info check in the unwinders, and SP register numbers in `ClrDataFrame`. Interpreter (all architectures): - Decode interpreted code with the interpreter GC info encoding, with frame-relative slots and skipping slots in an active callee's frame. - Report `InterpreterFrame`'s continuation (new `Continuation` data descriptor field). - Recognize interpreted funclets (handler/filter ranges of EH clauses) and compute interpreted caller contexts like `VirtualUnwindInterpreterCallFrame`, so funclet parents and unwound frames are skipped as in the runtime. With these, all cDAC stress debuggees pass on riscv64 in both JIT and `DOTNET_Interpreter=*` modes, and the cDAC dump tests pass on riscv64 dumps. Depends on microsoft/clrmd#1527 (for dump tests on riscv64/loongarch64) and #137337 (for interpreter on riscv64/loongarch64). --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
With these changes, riscv64 machine passes interpreter tests with mode 1, 2 and 3.