From f2d35154e52052e315a193900157dc9a0e2f3fb9 Mon Sep 17 00:00:00 2001 From: Yunhui Cui Date: Mon, 19 Feb 2024 17:34:17 +0800 Subject: [PATCH] lscpu: add RISC-V CPUTYPE support Only after adding cpu type can print the remaining cpu information, such as cacheinfo. Signed-off-by: Yunhui Cui Signed-off-by: yuanchicheng --- sys-utils/lscpu-cputype.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys-utils/lscpu-cputype.c b/sys-utils/lscpu-cputype.c index bcdf06e8db0..4ca3d353299 100644 --- a/sys-utils/lscpu-cputype.c +++ b/sys-utils/lscpu-cputype.c @@ -212,6 +212,7 @@ DEF_PAT_CPUTYPE( "family", PAT_FAMILY, family), DEF_PAT_CPUTYPE( "features", PAT_FEATURES, flags), /* s390 */ DEF_PAT_CPUTYPE( "flags", PAT_FLAGS, flags), /* x86 */ + DEF_PAT_CPUTYPE( "hart isa", PAT_ISA, isa), /* riscv */ DEF_PAT_CPUTYPE( "max thread id", PAT_MAX_THREAD_ID, mtid), /* s390 */ DEF_PAT_CPUTYPE( "model", PAT_MODEL, model), DEF_PAT_CPUTYPE( "model name", PAT_MODEL_NAME, modelname),