This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 73b9bced17e boards/risc-v: Enable VPU initialization for QEMU RV
73b9bced17e is described below
commit 73b9bced17e8981fd5d37f6b9a771ca3698e6ce9
Author: ENJOU1224 <[email protected]>
AuthorDate: Mon Jan 5 18:32:05 2026 +0800
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 <[email protected]>
---
arch/risc-v/src/qemu-rv/qemu_rv_start.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/risc-v/src/qemu-rv/qemu_rv_start.c
b/arch/risc-v/src/qemu-rv/qemu_rv_start.c
index 0128ba1d1b2..de4c49a671a 100644
--- a/arch/risc-v/src/qemu-rv/qemu_rv_start.c
+++ b/arch/risc-v/src/qemu-rv/qemu_rv_start.c
@@ -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;