mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00:00
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:
parent
3ab698c734
commit
73b9bced17
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue