Re: __atomic_test_and_set() and mips o32 - help wanted

Jason Thorpe <[email protected]> Wed, 19 Nov 2025 06:56:03 +0100
Newsgroups gmane.os.netbsd.ports.alpha,gmane.os.netbsd.ports.mips.devel,gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
> On Nov 19, 2025, at 2:05=E2=80=AFAM, Maciej W. Rozycki =
<[email protected]> wrote:
>=20
> Conversely the compiler is happy to inline LL/SC sequences as they map=20=

> directly to RTL and at worst you need to maintain emulation.  It seems=20=

> like a good compromise.

I=E2=80=99m not disagreeing that inline ll/sc is more efficient on =
systems that support it.  But if the compiler is targeted at a MIPS-I =
target, this is generally considered an acceptable compromise.  Sure, if =
you build with -mmips3 or whatever the flag is, inline it.  But if =
-mmips1, a libcall doesn=E2=80=99t seem unreasonable.

-- thorpej