Skip to content

Commit

Permalink
fix: riscv: xtheadvector: fix setup_v_vsize
Browse files Browse the repository at this point in the history
riscv: xtheadvector: fix setup_v_vsize

Signed-off-by: Han Gao <[email protected]>
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Sep 3, 2024
1 parent 70267ce commit e204c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/riscv/kernel/cpufeature.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ void __init riscv_fill_hwcap(void)
elf_hwcap &= ~COMPAT_HWCAP_ISA_F;
}

if (elf_hwcap & COMPAT_HWCAP_ISA_V) {
if ((elf_hwcap & COMPAT_HWCAP_ISA_V) || test_bit(RISCV_ISA_EXT_XTHEADVECTOR, hart_isa[0].isa)) {

Check failure on line 541 in arch/riscv/kernel/cpufeature.c

View workflow job for this annotation

GitHub Actions / checkpatch

WARNING: line length of 104 exceeds 100 columns
riscv_v_setup_vsize();
/*
* ISA string in device tree might have 'v' flag, but
Expand Down

0 comments on commit e204c96

Please sign in to comment.