[compiler-rt] [llvm] [compiler-rt][msan] Add MSan support for RISC-V 64-bit Linux (PR #206674)

Meng Zhuo via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 04:21:57 PDT 2026


================
@@ -520,6 +520,14 @@ static const MemoryMapParams Linux_Hexagon_MemoryMapParams = {
 // FIXME: Remove -msan-origin-base -msan-and-mask added by PR #109284 to tests
 // after picking good constants
 
+// riscv64 Linux — SV39 (256GB)
+static const MemoryMapParams Linux_RISCV64_MemoryMapParams = {
+    0x3C00000000, // AndMask (fold bits 34-37)
----------------
mengzhuo wrote:

RISCV64 SV39 only has 256GB:                                         

app(144GB) + shadow(=app) + origin(=app) + allocator(16GB) = 448GB > 256GB 

Not enough for 1:1 AFAIK

Should me implement for sv48 instead? Thanks

https://github.com/llvm/llvm-project/pull/206674


More information about the llvm-commits mailing list