Skip to content

Commit d52fec8

Browse files
committed
LoongArch: Add HWCAP_LOONGARCH_CPUCFG to elf_hwcap
HWCAP_LOONGARCH_CPUCFG is missing in elf_hwcap, so add it for glibc's later use. Cc: [email protected] Reported-by: Yinyu Cai <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 5dc4c99 commit d52fec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/loongarch/kernel/cpu-probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void cpu_probe_common(struct cpuinfo_loongarch *c)
9494
c->options = LOONGARCH_CPU_CPUCFG | LOONGARCH_CPU_CSR |
9595
LOONGARCH_CPU_TLB | LOONGARCH_CPU_VINT | LOONGARCH_CPU_WATCH;
9696

97-
elf_hwcap |= HWCAP_LOONGARCH_CRC32;
97+
elf_hwcap = HWCAP_LOONGARCH_CPUCFG | HWCAP_LOONGARCH_CRC32;
9898

9999
config = read_cpucfg(LOONGARCH_CPUCFG1);
100100
if (config & CPUCFG1_UAL) {

0 commit comments

Comments
 (0)