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 4, 2024
1 parent 0ba1dc1 commit 3344a8d
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)) {
riscv_v_setup_vsize();
/*
* ISA string in device tree might have 'v' flag, but
Expand Down

0 comments on commit 3344a8d

Please sign in to comment.