[1/3] powerpc: Avoid load hit store in __giveup_fpu() and __giveup_altivec()
Michael Ellerman
mpe at ellerman.id.au
Wed Jun 15 22:39:10 AEST 2016
On Sun, 2016-29-05 at 12:03:50 UTC, Anton Blanchard wrote:
> From: Anton Blanchard <anton at samba.org>
>
> In both __giveup_fpu() and __giveup_altivec() we make two modifications
> to tsk->thread.regs->msr. gcc decides to do a read/modify/write of
> each change, so we end up with a load hit store:
>
> ld r9,264(r10)
> rldicl r9,r9,50,1
> rotldi r9,r9,14
> std r9,264(r10)
> ...
> ld r9,264(r10)
> rldicl r9,r9,40,1
> rotldi r9,r9,24
> std r9,264(r10)
>
> Fix this by using a temporary.
>
> Signed-off-by: Anton Blanchard <anton at samba.org>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/8eb9803723a14fd12675641b95
cheers
More information about the Linuxppc-dev
mailing list