mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 04:24:33 +01:00
std.os.linux.tls: Support sparc32.
This commit is contained in:
parent
9ef16b36ce
commit
f7fb261efd
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue