summaryrefslogtreecommitdiff
path: root/shared/runtime/gchelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/runtime/gchelper.h')
-rw-r--r--shared/runtime/gchelper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/runtime/gchelper.h b/shared/runtime/gchelper.h
index 645ee837f..a863fb9aa 100644
--- a/shared/runtime/gchelper.h
+++ b/shared/runtime/gchelper.h
@@ -41,6 +41,8 @@ typedef uintptr_t gc_helper_regs_t[4];
typedef uintptr_t gc_helper_regs_t[10];
#elif defined(__aarch64__)
typedef uintptr_t gc_helper_regs_t[11]; // x19-x29
+#elif defined(__riscv) && defined(__riscv_xlen) && (__riscv_xlen == 32)
+typedef uintptr_t gc_helper_regs_t[12]; // S0-S11
#endif
#endif