Skip to content

Commit d0bded3

Browse files
stephanosiodanieldegrasse
authored andcommitted
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>
1 parent 1b3534d commit d0bded3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

arch/riscv/Kconfig.isa

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ config RISCV_ISA_EXT_M
3434
config RISCV_ISA_EXT_A
3535
bool
3636
imply RISCV_ISA_EXT_ZAAMO
37-
imply RISCV_ISA_EXT_ZLRSC
37+
imply RISCV_ISA_EXT_ZALRSC
3838
help
3939
(A) - Standard Extension for Atomic Instructions
4040

@@ -120,12 +120,12 @@ config RISCV_ISA_EXT_ZAAMO
120120

121121
The Zaamo extension enables support for AMO*.W/D-style instructions.
122122

123-
config RISCV_ISA_EXT_ZLRSC
123+
config RISCV_ISA_EXT_ZALRSC
124124
bool
125125
help
126-
(Zlrsc) - Load-Reserved/Store-Conditional subset of the A extension
126+
(Zalrsc) - Load-Reserved/Store-Conditional subset of the A extension
127127

128-
The Zlrsc extension enables support for LR.W/D and SC.W/D-style instructions.
128+
The Zalrsc extension enables support for LR.W/D and SC.W/D-style instructions.
129129

130130
config RISCV_ISA_EXT_ZBA
131131
bool

cmake/compiler/gcc/target_riscv.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ if(CONFIG_RISCV_ISA_EXT_ZIFENCEI)
5454
string(CONCAT riscv_march ${riscv_march} "_zifencei")
5555
endif()
5656

57-
# Check whether we already imply Zaamo/Zlrsc by selecting the A extension; if not - check them
57+
# Check whether we already imply Zaamo/Zalrsc by selecting the A extension; if not - check them
5858
# individually and enable them as needed
5959
if(NOT CONFIG_RISCV_ISA_EXT_A)
6060
if(CONFIG_RISCV_ISA_EXT_ZAAMO)
6161
string(CONCAT riscv_march ${riscv_march} "_zaamo")
6262
endif()
6363

64-
if(CONFIG_RISCV_ISA_EXT_ZLRSC)
65-
string(CONCAT riscv_march ${riscv_march} "_zlrsc")
64+
if(CONFIG_RISCV_ISA_EXT_ZALRSC)
65+
string(CONCAT riscv_march ${riscv_march} "_zalrsc")
6666
endif()
6767
endif()
6868

0 commit comments

Comments
 (0)