[PW_SID:1129586] riscv: cmpxchg: Use .option arch for Zacas and Zabha#2306
[PW_SID:1129586] riscv: cmpxchg: Use .option arch for Zacas and Zabha#2306linux-riscv-bot wants to merge 2 commits into
Conversation
Instead of adding these to -march globally, use .option arch to use
instructions from these extensions only in code paths where we know they
are available, like how it is done for most other extensions.
TOOLCHAIN_HAS_{ZACAS,ZABHA} already depend on AS_HAS_OPTION_ARCH, so
this is not a functionality regression even on older assemblers.
Although the compiler is unlikely to generate atomics on its own accord,
this aligns handling of Zacas and Zabha with most other extensions and
improves consistency on how assembly code requiring extra extensions is
written in kernel code.
This is analogous to the use of __LSE_PREAMBLE or .arch_extension lse in
arm64 code.
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
|
Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha" |
8ca72ef to
60e0882
Compare
PR for series 1129586 applied to workflow__riscv__fixes
Name: riscv: cmpxchg: Use .option arch for Zacas and Zabha
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1129586
Version: 1