druntime: add support for musl RISCV64 (#21213)

Based on https://git.musl-libc.org/cgit/musl/tree/arch/riscv64/bits?h=v1.2.5
This commit is contained in:
fossdd 2025-04-12 12:01:30 +02:00 committed by GitHub
parent 09864e4c35
commit 81dd72b2a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -440,6 +440,11 @@ else version (CRuntime_Musl)
}
alias uint fexcept_t;
}
else version (RICV64)
{
alias uint fenv_t;
alias uint fexcept_t;
}
else
{
static assert(false, "Architecture not supported.");

View file

@ -2763,6 +2763,11 @@ else version (CRuntime_Musl)
enum MINSIGSTKSZ = 4096;
enum SIGSTKSZ = 16384;
}
else version (RISCV64)
{
enum MINSIGSTKSZ = 2048;
enum SIGSTKSZ = 8192;
}
else
static assert(0, "unimplemented");