powerpc/sstep: Fix sstep.c compile on powerpcspe
authorLennart Sorensen <lsorense@csclub.uwaterloo.ca>
Thu, 5 May 2016 20:44:44 +0000 (16:44 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:54:07 +0000 (21:54 +1000)
commitdd21731022faf43c1250050e5d28d11add599149
tree1952e5ba2ed472f69dcaf98ccd944d99b703398e
parent31cdd0c39c7544ced79da53aa0b7e989f3a39582
powerpc/sstep: Fix sstep.c compile on powerpcspe

Commit be96f63375a1 ("powerpc: Split out instruction analysis part of
emulate_step()") introduced ldarx and stdcx into the instructions in
sstep.c, which are not accepted by the assembler on powerpcspe, but does
seem to be accepted by the normal powerpc assembler even in 32 bit mode.

Wrap these two instructions in a __powerpc64__ check like it is
everywhere else in the file.

Fixes: be96f63375a1 ("powerpc: Split out instruction analysis part of emulate_step()")
Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/sstep.c