Skip to content

Commit

Permalink
riscv: Fixup matrix name
Browse files Browse the repository at this point in the history
Rename to RISCV_ISA_EXT_ZXTMATRIX.

Signed-off-by: Guo Ren <[email protected]>
  • Loading branch information
guoren83 committed Apr 9, 2024
1 parent 7ec9b03 commit 39b6555
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/riscv/include/asm/hwcap.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#define RISCV_ISA_EXT_ZICSR 40
#define RISCV_ISA_EXT_ZIFENCEI 41
#define RISCV_ISA_EXT_ZIHPM 42
#define RISCV_ISA_EXT_ZXTMATRIX 43
#define RISCV_ISA_EXT_XTHEADMATRIX 43

#define RISCV_ISA_EXT_MAX 64

Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/include/asm/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

static __always_inline bool has_matrix(void)
{
return riscv_has_extension_unlikely(RISCV_ISA_EXT_ZXTMATRIX);
return riscv_has_extension_unlikely(RISCV_ISA_EXT_XTHEADMATRIX);
}

static inline void __riscv_m_mstate_clean(struct pt_regs *regs)
Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/kernel/cpufeature.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = {
__RISCV_ISA_EXT_DATA(svinval, RISCV_ISA_EXT_SVINVAL),
__RISCV_ISA_EXT_DATA(svnapot, RISCV_ISA_EXT_SVNAPOT),
__RISCV_ISA_EXT_DATA(svpbmt, RISCV_ISA_EXT_SVPBMT),
__RISCV_ISA_EXT_DATA(zxtmatrix, RISCV_ISA_EXT_ZXTMATRIX),
__RISCV_ISA_EXT_DATA(xtheadmatrix, RISCV_ISA_EXT_XTHEADMATRIX),
};

const size_t riscv_isa_ext_count = ARRAY_SIZE(riscv_isa_ext);
Expand Down

0 comments on commit 39b6555

Please sign in to comment.