From c3dda88127d00e6282329904fa5b0faf7ce423f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 22 Jun 2024 15:02:09 +0200 Subject: [PATCH] std.os.linux.tls: Handle riscv32 in setThreadPointer(). --- lib/std/os/linux/tls.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/linux/tls.zig b/lib/std/os/linux/tls.zig index 82dc3bf75997..adb80c98da33 100644 --- a/lib/std/os/linux/tls.zig +++ b/lib/std/os/linux/tls.zig @@ -152,7 +152,7 @@ pub fn setThreadPointer(addr: usize) void { const rc = linux.syscall1(.set_tls, addr); assert(rc == 0); }, - .riscv64 => { + .riscv32, .riscv64 => { asm volatile ( \\ mv tp, %[addr] :