xiaoxiang781216 commented on code in PR #20135:
URL: https://github.com/apache/nuttx/pull/20135#discussion_r4004470764
##########
arch/risc-v/include/irq.h:
##########
@@ -681,7 +681,7 @@ struct xcptcontext
# if CONFIG_ARCH_RV_VECTOR_BYTE_LENGTH > 0
/* There are 32 vector registers(v0 - v31) with vlenb length. */
- uintreg_t vregs[VPU_XCPTC_SIZE];
+ uintreg_t vregs[VPU_XCPTC_SIZE / INT_REG_SIZE];
Review Comment:
need change nuttx/arch/risc-v/include/irq.h too:
```
#ifdef CONFIG_ARCH_RV_ISA_V
# if CONFIG_ARCH_RV_VECTOR_BYTE_LENGTH > 0
/* There are 32 vector registers(v0 - v31) with vlenb length. */
uintreg_t vregs[VPU_XCPTC_SIZE];
# else
uintreg_t *vregs;
# endif
#endif
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]