Re: [PATCH 2/2] ARC: don't align ret_from_exception function

2020-03-11 Thread Eugeniy Paltsev
>From: Vineet Gupta >Sent: Thursday, March 12, 2020 00:10 >To: Eugeniy Paltsev; linux-snps-arc@lists.infradead.org >Cc: linux-ker...@vger.kernel.org; Alexey Brodkin >Subject: Re: [PATCH 2/2] ARC: don't align ret_from_exception function > >On 3/11/20 1:58 PM, Eugeniy Palt

Re: [PATCH 2/2] ARC: don't align ret_from_exception function

2020-03-11 Thread Vineet Gupta
On 3/11/20 1:58 PM, Eugeniy Paltsev wrote: >> >> I would like to keep it aligned. >> >> ARC700 definitely has penalty for unaligned branch targets, so it will >> definitely >> suffer there. > > Do you know some exact numbers? I'm not an expert in ARC700 (fortunately =) I don't remember the exact

Re: [PATCH 2/2] ARC: don't align ret_from_exception function

2020-03-11 Thread Eugeniy Paltsev
>From: Vineet Gupta >Sent: Wednesday, March 11, 2020 20:38 >To: Eugeniy Paltsev; linux-snps-arc@lists.infradead.org >Cc: linux-ker...@vger.kernel.org; Alexey Brodkin >Subject: Re: [PATCH 2/2] ARC: don't align ret_from_exception function > >On 3/11/20 9:26 AM, Eugeniy Pa

Re: [PATCH 2/2] ARC: don't align ret_from_exception function

2020-03-11 Thread Vineet Gupta
On 3/11/20 9:26 AM, Eugeniy Paltsev wrote: > ARC have a tricky implemented ret_from_exception function. > It is written on ASM and can be called like regular function. > However it has another 'entry point' as it can be called as a > continuation of EV_Trap function. It is not really intended / ne

[PATCH 2/2] ARC: don't align ret_from_exception function

2020-03-11 Thread Eugeniy Paltsev
ARC have a tricky implemented ret_from_exception function. It is written on ASM and can be called like regular function. However it has another 'entry point' as it can be called as a continuation of EV_Trap function. As we declare "ret_from_exception" using ENTRY macro it may align "ret_from_excep