glibc/sysdeps/mips
Fredrik Noring 8e3c00db16 MIPS: Use `.set mips2' to emulate LL/SC for the R5900 too
GAS treats the R5900 as MIPS III, with some modifications.  The MIPS III
designation means that the GNU C Library will try to assemble the LL and
SC instructions, even though they are not implemented in the R5900.  GAS
will therefore produce the following errors:

Error: opcode not supported on this processor: r5900 (mips3) `ll $2,0($4)'
Error: opcode not supported on this processor: r5900 (mips3) `sc $6,0($4)'

The MIPS II ISA override as used here enables the kernel to trap and
emulate the LL and SC instructions, as required.

This change has been tested by compiling the GNU C Library 2.27 with a
GCC 8.2.0 cross-compiler for mipsr5900el-unknown-linux-gnu under Gentoo.

	* sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
	with the ISA override.
2018-11-01 14:36:48 +00:00
..
bits Do not define various fenv.h macros for MIPS soft-float (bug 23479). 2018-08-02 15:53:29 +00:00
fpu Split fenv_private.h out of math_private.h more consistently. 2018-08-28 20:48:49 +00:00
ieee754
include/sys
mips32 Mark _init and _fini as hidden [BZ #23145] 2018-06-08 10:28:52 -07:00
mips64 Do not define various fenv.h macros for MIPS soft-float (bug 23479). 2018-08-02 15:53:29 +00:00
nofpu Do not define various fenv.h macros for MIPS soft-float (bug 23479). 2018-08-02 15:53:29 +00:00
nptl
sys MIPS: Use `.set mips2' to emulate LL/SC for the R5900 too 2018-11-01 14:36:48 +00:00
Implies
Makefile
__longjmp.c
abort-instr.h
add_n.S
addmul_1.S
atomic-machine.h
bsd-_setjmp.S
bsd-setjmp.S
configure
configure.ac
dl-dtprocnum.h
dl-machine-reject-phdr.h
dl-machine.h elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
dl-procinfo.c
dl-procinfo.h
dl-tls.h
dl-trampoline.c elf: Unify symbol address run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
fpregdef.h
fpu_control.h
gccframe.h
jmpbuf-unwind.h
ldbl-classify-compat.h
ldsodefs.h
libc-tls.c
linkmap.h
localplt.data
lshift.S
machine-gmon.h
math-tests-snan-payload.h Move SNAN_TESTS_PRESERVE_PAYLOAD out of math-tests.h. 2018-08-01 11:21:16 +00:00
memcpy.S
memset.S
memusage.h
mul_1.S
nan-high-order-bit.h
preconfigure
regdef.h
rshift.S
setjmp.S
setjmp_aux.c
sgidefs.h
sotruss-lib.c
stackinfo.h
start.S
strcmp.S
sub_n.S
submul_1.S
tininess.h
tls-macros.h
tst-abi-fp32mod.c
tst-abi-fp64amod.c
tst-abi-fp64mod.c
tst-abi-fpxxmod.c
tst-abi-fpxxomod.c
tst-abi-interlink.c
tst-audit.h
tst-mode-switch-1.c
tst-mode-switch-2.c
tst-mode-switch-3.c