Re: [1/5] powerpc/lib: Fix off-by-one in alternate feature patching

2018-04-17 Thread Michael Ellerman
On Mon, 2018-04-16 at 14:39:01 UTC, Michael Ellerman wrote: > When we patch an alternate feature section, we have to adjust any > relative branches that branch out of the alternate section. > > But currently we have a bug if we have a branch that points to past > the last instruction of the altern

[PATCH 1/5] powerpc/lib: Fix off-by-one in alternate feature patching

2018-04-16 Thread Michael Ellerman
When we patch an alternate feature section, we have to adjust any relative branches that branch out of the alternate section. But currently we have a bug if we have a branch that points to past the last instruction of the alternate section, eg: FTR_SECTION_ELSE 1: b 2f or