loongarch: fix asm to set thread pointer (#21086)

Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
This commit is contained in:
YANG Xudong 2024-08-16 06:40:44 +08:00 committed by GitHub
parent 5d080e25d5
commit 8e91c229e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -269,7 +269,7 @@ pub fn setThreadPointer(addr: usize) void {
},
.loongarch32, .loongarch64 => {
asm volatile (
\\ mv tp, %[addr]
\\ move $tp, %[addr]
:
: [addr] "r" (addr),
);