This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 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 0276c6aae1c arch/risc-v/include/irq.h: fix vector context allocated
size
0276c6aae1c is described below
commit 0276c6aae1c7e4b98f3e409cca591e361843ec1a
Author: donghaokun <[email protected]>
AuthorDate: Mon Sep 14 16:46:26 2026 +0800
arch/risc-v/include/irq.h: fix vector context allocated size
VPU_XCPTC_SIZE, which is expressed in bytes, but vregs is an array of
uintreg_t.
Signed-off-by: luke kun <[email protected]>
---
arch/risc-v/include/irq.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/risc-v/include/irq.h b/arch/risc-v/include/irq.h
index 9bf32c58b57..f631f7ab71a 100644
--- a/arch/risc-v/include/irq.h
+++ b/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];
# else
uintreg_t *vregs;
# endif