Skip to content

Commit 1eac282

Browse files
Heiko Stuebnerpalmer-dabbelt
authored andcommitted
RISC-V: fix ordering of Zbb extension
As Andrew reported, Zb* comes after Zi* according 27.11 "Subset Naming Convention" so fix the ordering accordingly. Reported-by: Andrew Jones <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Tested-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 9ddfc3c commit 1eac282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ arch_initcall(riscv_cpuinfo_init);
185185
* New entries to this struct should follow the ordering rules described above.
186186
*/
187187
static struct riscv_isa_ext_data isa_ext_arr[] = {
188-
__RISCV_ISA_EXT_DATA(zbb, RISCV_ISA_EXT_ZBB),
189188
__RISCV_ISA_EXT_DATA(zicbom, RISCV_ISA_EXT_ZICBOM),
190189
__RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE),
190+
__RISCV_ISA_EXT_DATA(zbb, RISCV_ISA_EXT_ZBB),
191191
__RISCV_ISA_EXT_DATA(sscofpmf, RISCV_ISA_EXT_SSCOFPMF),
192192
__RISCV_ISA_EXT_DATA(sstc, RISCV_ISA_EXT_SSTC),
193193
__RISCV_ISA_EXT_DATA(svinval, RISCV_ISA_EXT_SVINVAL),

0 commit comments

Comments
 (0)