mirror of
https://github.com/ziglang/zig.git
synced 2026-01-09 08:55:36 +00:00
loongarch: fix asm to set thread pointer (#21086)
Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
This commit is contained in:
parent
5d080e25d5
commit
8e91c229e1
@ -269,7 +269,7 @@ pub fn setThreadPointer(addr: usize) void {
|
||||
},
|
||||
.loongarch32, .loongarch64 => {
|
||||
asm volatile (
|
||||
\\ mv tp, %[addr]
|
||||
\\ move $tp, %[addr]
|
||||
:
|
||||
: [addr] "r" (addr),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user