arch/risc-v/src/common: fix wrong vregs access in up_initial_state

vregs is a member of struct xcptcontext, not tcb_s.

Signed-off-by: luke kun <donghaokun@lixiang.com>
This commit is contained in:
luke kun 2026-09-09 17:09:09 +08:00 committed by Xiang Xiao
parent 1ed0db7af4
commit 412931f707

View file

@ -60,7 +60,7 @@ void up_initial_state(struct tcb_s *tcb)
{
struct xcptcontext *xcp = &tcb->xcp;
#if defined(CONFIG_ARCH_RV_ISA_V) && (CONFIG_ARCH_RV_VECTOR_BYTE_LENGTH == 0)
uintptr_t *vregs = tcb->vregs;
uintreg_t *vregs = xcp->vregs;
#endif
uintptr_t regval;
uintptr_t topstack;