Skip to content

Commit 5601901

Browse files
committed
[#49207] riscv/vector_helper.c: Fix detecting vector extensions
1 parent 963bf7f commit 5601901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/vector_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
static inline void require_vec(CPUState *env)
2222
{
23-
if (!(env->mstatus & MSTATUS_VS)) {
23+
if (!riscv_has_ext(env, RISCV_FEATURE_RVV)) {
2424
raise_exception_and_sync_pc(env, RISCV_EXCP_ILLEGAL_INST);
2525
}
2626
}

0 commit comments

Comments
 (0)