Skip to content
Permalink
Browse files

arch: arc: fix the offset generation of accl_regs

* the offset generation of accl_regs should
  rely on CONFIG_ARC_HAS_ACCL_REGS not CONFIG_FP_SHARING

Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
  • Loading branch information...
vonhust authored and carlescufi committed Aug 5, 2019
1 parent c635409 commit f7fd1ff67c3b0dde8ddc7d8db74e315ba103a5db
Showing with 3 additions and 1 deletion.
  1. +3 −1 arch/arc/core/offsets/offsets.c
@@ -94,9 +94,11 @@ GEN_OFFSET_SYM(_callee_saved_stack_t, user_sp);
#endif
#endif
GEN_OFFSET_SYM(_callee_saved_stack_t, r30);
#ifdef CONFIG_FP_SHARING
#ifdef CONFIG_ARC_HAS_ACCL_REGS
GEN_OFFSET_SYM(_callee_saved_stack_t, r58);
GEN_OFFSET_SYM(_callee_saved_stack_t, r59);
#endif
#ifdef CONFIG_FP_SHARING
GEN_OFFSET_SYM(_callee_saved_stack_t, fpu_status);
GEN_OFFSET_SYM(_callee_saved_stack_t, fpu_ctrl);
#ifdef CONFIG_FP_FPU_DA

0 comments on commit f7fd1ff

Please sign in to comment.
You can’t perform that action at this time.