boards/risc-v: Enable VPU initialization for QEMU RV

The riscv_vpuconfig() was defined but never called in qemu_rv_start. This caused mstatus.VS to remain disabled, leading to Illegal Instruction exceptions when the OS attempted to use vector registers. This patch adds the missing initialization call.

Signed-off-by: ENJOU1224 <enjou1224@outlook.com>
This commit is contained in:
ENJOU1224 2026-01-05 18:32:05 +08:00 • committed by Xiang Xiao
parent 3ab698c734
commit 73b9bced17

View file

@ -166,10 +166,12 @@ void qemu_rv_start(int mhartid, const char *dtb)
}
#endif
/* Configure FPU */
/* Configure FPU and VPU */
riscv_fpuconfig();
riscv_vpuconfig();
if (mhartid > 0)
{
goto cpux;