Browse Source

arch: riscv: Fix incorrect Zalrsc extension name

`Zlrsc` is not a thing and the correct name for it is `Zalrsc`.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
pull/92325/merge
Stephanos Ioannidis 2 weeks ago committed by Daniel DeGrasse
parent
commit
d0bded3c8c
  1. 8
      arch/riscv/Kconfig.isa
  2. 6
      cmake/compiler/gcc/target_riscv.cmake

8
arch/riscv/Kconfig.isa

@ -34,7 +34,7 @@ config RISCV_ISA_EXT_M
config RISCV_ISA_EXT_A config RISCV_ISA_EXT_A
bool bool
imply RISCV_ISA_EXT_ZAAMO imply RISCV_ISA_EXT_ZAAMO
imply RISCV_ISA_EXT_ZLRSC imply RISCV_ISA_EXT_ZALRSC
help help
(A) - Standard Extension for Atomic Instructions (A) - Standard Extension for Atomic Instructions
@ -120,12 +120,12 @@ config RISCV_ISA_EXT_ZAAMO
The Zaamo extension enables support for AMO*.W/D-style instructions. The Zaamo extension enables support for AMO*.W/D-style instructions.
config RISCV_ISA_EXT_ZLRSC config RISCV_ISA_EXT_ZALRSC
bool bool
help help
(Zlrsc) - Load-Reserved/Store-Conditional subset of the A extension (Zalrsc) - Load-Reserved/Store-Conditional subset of the A extension
The Zlrsc extension enables support for LR.W/D and SC.W/D-style instructions. The Zalrsc extension enables support for LR.W/D and SC.W/D-style instructions.
config RISCV_ISA_EXT_ZBA config RISCV_ISA_EXT_ZBA
bool bool

6
cmake/compiler/gcc/target_riscv.cmake

@ -54,15 +54,15 @@ if(CONFIG_RISCV_ISA_EXT_ZIFENCEI)
string(CONCAT riscv_march ${riscv_march} "_zifencei") string(CONCAT riscv_march ${riscv_march} "_zifencei")
endif() endif()
# Check whether we already imply Zaamo/Zlrsc by selecting the A extension; if not - check them # Check whether we already imply Zaamo/Zalrsc by selecting the A extension; if not - check them
# individually and enable them as needed # individually and enable them as needed
if(NOT CONFIG_RISCV_ISA_EXT_A) if(NOT CONFIG_RISCV_ISA_EXT_A)
if(CONFIG_RISCV_ISA_EXT_ZAAMO) if(CONFIG_RISCV_ISA_EXT_ZAAMO)
string(CONCAT riscv_march ${riscv_march} "_zaamo") string(CONCAT riscv_march ${riscv_march} "_zaamo")
endif() endif()
if(CONFIG_RISCV_ISA_EXT_ZLRSC) if(CONFIG_RISCV_ISA_EXT_ZALRSC)
string(CONCAT riscv_march ${riscv_march} "_zlrsc") string(CONCAT riscv_march ${riscv_march} "_zalrsc")
endif() endif()
endif() endif()

Loading…
Cancel
Save