powerpc/sstep: Emulate prefixed instructions only when CPU_FTR_ARCH_31 is set
authorBalamuruhan S <bala24@linux.ibm.com>
Sun, 11 Oct 2020 05:09:04 +0000 (10:39 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Dec 2020 13:09:09 +0000 (00:09 +1100)
commitef6879f8c8053cc3b493f400a06d452d7fb13650
treec0fed89657017893685c03c83fe84c1c6aaba355
parent02b02ee1b05ef225525835b2d45faf31b3420bdd
powerpc/sstep: Emulate prefixed instructions only when CPU_FTR_ARCH_31 is set

Unconditional emulation of prefixed instructions will allow
emulation of them on Power10 predecessors which might cause
issues. Restrict that.

Fixes: 3920742b92f5 ("powerpc sstep: Add support for prefixed fixed-point arithmetic")
Fixes: 50b80a12e4cc ("powerpc sstep: Add support for prefixed load/stores")
Signed-off-by: Balamuruhan S <bala24@linux.ibm.com>
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Reviewed-by: Sandipan Das <sandipan@linux.ibm.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201011050908.72173-2-ravi.bangoria@linux.ibm.com
arch/powerpc/lib/sstep.c