1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-01 05:02:03 +03:00
Files
glibc/sysdeps/unix/sysv/linux
Christoph Müllner 81c7f6193c RISC-V: Execute a PAUSE hint in spin loops
The atomic_spin_nop() macro can be used to run arch-specific
code in the body of a spin loop to potentially improve efficiency.
RISC-V's Zihintpause extension includes a PAUSE instruction for
this use-case, which is encoded as a HINT, which means that it
behaves like a NOP on systems that don't implement Zihintpause.

Binutils supports Zihintpause since 2.36, so this patch uses
the ".insn" directive to keep the code compatible with older
toolchains.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-06-24 21:36:49 +02:00
..
2024-06-18 10:45:36 +02:00
2024-06-17 16:31:49 +00:00
2024-06-17 16:31:49 +00:00
2024-06-18 10:45:36 +02:00
2024-06-17 16:31:49 +00:00
2024-06-17 16:31:49 +00:00
2024-06-17 16:31:49 +00:00
2024-06-17 16:31:49 +00:00
2024-06-17 16:31:49 +00:00
2024-06-17 16:31:49 +00:00
2024-06-17 16:31:49 +00:00
2024-06-17 16:31:49 +00:00
2024-06-17 16:31:49 +00:00
2024-06-04 12:09:15 -05:00
2024-06-17 16:31:49 +00:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2023-07-17 10:08:10 -04:00
2024-06-12 15:25:54 -03:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2024-06-04 12:09:15 -05:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2024-06-04 12:09:15 -05:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2024-01-08 17:09:36 -03:00
2023-09-05 13:08:59 -03:00
2024-01-08 17:09:36 -03:00