about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-08-29 16:52:27 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-09-02 12:30:45 -0300
commit1927f718fcc48bdaea03086bdc2adf11279d655b (patch)
tree099a96459bb27f19aabd937465071a75934f646d /sysdeps/unix
parent3844cdc33093dbe1e33ddb831eada9bdb4a482b9 (diff)
downloadglibc-1927f718fcc48bdaea03086bdc2adf11279d655b.tar.gz
glibc-1927f718fcc48bdaea03086bdc2adf11279d655b.tar.xz
glibc-1927f718fcc48bdaea03086bdc2adf11279d655b.zip
linux: mips: Fix syscall_cancell build for __mips_isa_rev >= 6
Use beqzc instead of bnel.

Checked with a mipsisa64r6el-n64-linux-gnu build and some nptl
cancellation tests on qemu.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S b/sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S
index f172041324..cfc0596b6a 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S
+++ b/sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S
@@ -77,7 +77,11 @@ __syscall_cancel_arch_end:
 
 	.set noreorder
 	.set nomacro
+#if __mips_isa_rev >= 6
+	beqzc	$7, 1f
+#else
 	bnel	a3, zero, 1f
+#endif
 	SUBU	v0, zero, v0
 	.set macro
 	.set reorder