powerpc/lib/sstep: Fix building for powerpcspe
authorJames Clarke <jrtc27@jrtc27.com>
Thu, 7 Dec 2017 20:32:44 +0000 (20:32 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 26 Sep 2019 12:19:06 +0000 (13:19 +0100)
commitf955c860760181600a911cc1015d4b04e08fd4bd
treeef449f23ad734bd141490b99c8d3d3d5e2fa18ce
parent029c8ac062d1ba113e7112f3e44b23cca207cc94
powerpc/lib/sstep: Fix building for powerpcspe

On powerpcspe, ptesync is not a recognised instruction and so fails to
assemble. We don't expect to have to emulate an lwsync or a ptesync on a
32-bit kernel, so just ifdef them out, and catch any unexpected barrier
types.

Fixes: 3cdfcbfd32b9 ("powerpc: Change analyse_instr so it doesn't modify *regs")
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-lib-sstep-fix-building-for-powerpcspe.patch
arch/powerpc/lib/sstep.c