authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2021-09-27 21:00:07+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2021-10-10 09:13:17+07:00
log834202bf985c257b2bf79df7cb804af9cb0ca422
tree34a0d31263390ad9a853437435e547d7940212ac
parent8e1aa72c69cddc9fcd0bd8a3f9f4e9d3a8d002af

SPARCv9: Fix freeAndExit implementation

This fixes the wrong branch target and register check. (https://github.com/ziglang/zig/issues/9801)

1 files changed, 2 insertions(+), 3 deletions(-)

lib/std/Thread.zig+2-3
...@@ -813,12 +813,11 @@ const LinuxThreadImpl = struct {...@@ -813,12 +813,11 @@ const LinuxThreadImpl = struct {
813 \\ # force-deactivate it by running `restore` until813 \\ # force-deactivate it by running `restore` until
814 \\ # all frames are cleared.814 \\ # all frames are cleared.
815 \\ 1:815 \\ 1:
816 \\ cmp %%sp, 0816 \\ cmp %%fp, 0
817 \\ beq 2f817 \\ beq 2f
818 \\ nop818 \\ nop
819 \\ ba 1b
819 \\ restore820 \\ restore
820 \\ ba 1f
821 \\ nop
822 \\ 2:821 \\ 2:
823 \\ mov 73, %%g1822 \\ mov 73, %%g1
824 \\ mov %[ptr], %%o0823 \\ mov %[ptr], %%o0