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 AM, Maciej W. Rozycki <[email protected]> wrote: > > Conversely the compiler is happy to inline LL/SC sequences as they map > directly to RTL and at worst you need to maintain emulation. It seems > like a good compromise. I’m 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’t seem unreasonable. -- thorpej