]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/64s: Only use slbfee on CPUs that support it
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Nov 2018 08:25:38 +0000 (19:25 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Nov 2018 08:32:22 +0000 (19:32 +1100)
commitba0f34a0fe213c1479b00bd41674860564505b74
tree7c31645463b75c5b18c9e6ac0990a02edd51c364
parent704963cf9f3db714ddde8c5bdea2262fd52b3123
powerpc/mm/64s: Only use slbfee on CPUs that support it

The slbfee instruction was only added in ISA 2.05 (Power6), it's not
supported on older CPUs. We don't have a CPU feature for that ISA
version though, so just use the ISA 2.06 feature flag.

Fixes: 3a2932425c10 ("powerpc/64s/hash: Add some SLB debugging tests")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slb.c