Skip to content

Commit 73b9bce

Browse files
ENJOU1224xiaoxiang781216
authored andcommitted
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>
1 parent 3ab698c commit 73b9bce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/risc-v/src/qemu-rv/qemu_rv_start.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,12 @@ void qemu_rv_start(int mhartid, const char *dtb)
166166
}
167167
#endif
168168

169-
/* Configure FPU */
169+
/* Configure FPU and VPU */
170170

171171
riscv_fpuconfig();
172172

173+
riscv_vpuconfig();
174+
173175
if (mhartid > 0)
174176
{
175177
goto cpux;

0 commit comments

Comments
 (0)