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 {
813813 \\ # force-deactivate it by running `restore` until
814814 \\ # all frames are cleared.
815815 \\ 1:
816 \\ cmp %%sp, 0
816 \\ cmp %%fp, 0
817817 \\ beq 2f
818818 \\ nop
819 \\ ba 1b
819820 \\ restore
820 \\ ba 1f
821 \\ nop
822821 \\ 2:
823822 \\ mov 73, %%g1
824823 \\ mov %[ptr], %%o0