Skip to content
Commit 3d5e8012 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

ARCv2: entry: save Accumulator register pair (r58:59) if present



Accumulator is present in configs with FPU and/or DSP MPY (mpy > 6)

Instead of doing this in pt_regs (and thus every kernel entry/exit),
this could have been done in context switch (and for user task only) as
currently kernel doesn't clobber these registers for its own accord.
However we will soon start using 64-bit multiply instructions for kernel
which can clobber these. Also gcc folks also plan to start using these
as GPRs, hence better to always save/restore them

Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 6492f09e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment