powerpc/603: Avoid a pile of NOPs when not using SW LRU in TLB exceptions
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 7 May 2021 05:02:02 +0000 (05:02 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 May 2021 05:27:16 +0000 (15:27 +1000)
commit70d6ebf82bd0cfddaebb54e861fc15e9945a5fc6
tree911bbf83bde80232cfff5090ffbd05bcd45f1324
parentc176c3d58a3ed623e8917acaafe240245e700e33
powerpc/603: Avoid a pile of NOPs when not using SW LRU in TLB exceptions

The SW LRU is in an MMU feature section. When not used, that's a
dozen of NOPs to fetch for nothing.

Define an ALT section that does the few remaining operations.

That also avoids a double read on SRR1 in the SW LRU case.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/603725297466959419628ef7964aaf3417fb647d.1620363691.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_book3s_32.S