arc: Fix zero-overhead loop in fake stackframe
Fixes incorrect PR #12480 lp_count set to zero doesn't reset zero overhead loops, it encodes a maximum loopcount. Signed-off-by: Ruud Derwig <Ruud.Derwig@synopsys.com>
This commit is contained in:
parent
e85571da28
commit
fd0a4372b9
1 changed files with 2 additions and 1 deletions
|
@ -200,7 +200,8 @@ _rirq_return_from_coop:
|
|||
ld_s r0, [r2, _thread_offset_to_return_value]
|
||||
st_s r0, [sp, ___isf_t_r0_OFFSET]
|
||||
|
||||
st 0, [sp, ___isf_t_lp_count_OFFSET]
|
||||
/* reset zero-overhead loops */
|
||||
st 0, [sp, ___isf_t_lp_end_OFFSET]
|
||||
|
||||
/*
|
||||
* r13 is part of both the callee and caller-saved register sets because
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue