powerpc/sstep: Cover new VSX instructions under CONFIG_VSX
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Sun, 11 Oct 2020 05:09:05 +0000 (10:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:47 +0000 (11:53 +0100)
commit2ae4b562d78f458798506030c1e29b7a09ce561a
treebc04f74d583153cadcbd3e076c6eba655f88dfaa
parentbf608cf329a3c6cd77ca02ae11870866fd04a20e
powerpc/sstep: Cover new VSX instructions under CONFIG_VSX

[ Upstream commit 1817de2f141c718f1a0ae59927ec003e9b144349 ]

Recently added Power10 prefixed VSX instruction are included
unconditionally in the kernel. If they are executed on a
machine without VSX support, it might create issues. Fix that.
Also fix one mnemonics spelling mistake in comment.

Fixes: 50b80a12e4cc ("powerpc sstep: Add support for prefixed load/stores")
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201011050908.72173-3-ravi.bangoria@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/lib/sstep.c