Skip to content

Commit

Permalink
riscv_cpuinfo: Add support for RVV extension in CPU info
Browse files Browse the repository at this point in the history
Add missing info for RVV ISA extention, which is already supported
by NuttX.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
  • Loading branch information
no1wudi committed Sep 25, 2024
1 parent efdb432 commit fcbad80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/risc-v/src/common/riscv_cpuinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ ssize_t up_show_cpuinfo(char *buf, size_t buf_size, off_t file_off)
#ifdef CONFIG_ARCH_RV_ISA_C
procfs_sprintf(buf, buf_size, &file_off, "%s", "c");
#endif
#ifdef CONFIG_ARCH_RV_ISA_V
procfs_sprintf(buf, buf_size, &file_off, "%s", "v");
#endif

/* MMU type */

Expand Down

0 comments on commit fcbad80

Please sign in to comment.