Re: [PATCH v2 5/6] armv8: Simplify switch_el macro

2022-03-02 Thread Tom Rini
On Fri, Feb 11, 2022 at 11:29:38AM +, Andre Przywara wrote: > The switch_el macro is a neat contraption to handle cases where we need > different code depending on the current exception level, but its > implementation was longer than needed. > > Simplify it by doing just one comparison, then

[PATCH v2 5/6] armv8: Simplify switch_el macro

2022-02-11 Thread Andre Przywara
The switch_el macro is a neat contraption to handle cases where we need different code depending on the current exception level, but its implementation was longer than needed. Simplify it by doing just one comparison, then using the different condition codes to branch to the desired target.