powerpc/sstep: Fix darn emulation
authorSandipan Das <sandipan@linux.ibm.com>
Thu, 4 Feb 2021 08:07:44 +0000 (13:37 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 14:10:08 +0000 (01:10 +1100)
commit22b89ba178dd0a66a26699ead014a3e73ff8e044
tree4dfc6f420e294d62c557926e5b8bd83348865354
parentbbda4b6c7d7c7f79da71f95c92a5d76be22c3efd
powerpc/sstep: Fix darn emulation

Commit 8813ff49607e ("powerpc/sstep: Check instruction validity
against ISA version before emulation") introduced a proper way to skip
unknown instructions. This makes sure that the same is used for the
darn instruction when the range selection bits have a reserved value.

Fixes: a23987ef267a ("powerpc: sstep: Add support for darn instruction")
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210204080744.135785-2-sandipan@linux.ibm.com
arch/powerpc/lib/sstep.c