std.os.linux.tls: Support sparc32.

This commit is contained in:
Alex Rønne Petersen 2024-08-12 03:52:32 +02:00 committed by Andrew Kelley
parent 9ef16b36ce
commit f7fb261efd

View File

@ -88,6 +88,7 @@ const current_variant: Variant = switch (native_arch) {
=> .I_modified,
.hexagon,
.s390x,
.sparc,
.sparc64,
.x86,
.x86_64,
@ -309,7 +310,7 @@ pub fn setThreadPointer(addr: usize) void {
: "r0"
);
},
.sparc64 => {
.sparc, .sparc64 => {
asm volatile (
\\ mov %[addr], %%g7
: