powerpc: Fix compilation of emulate_step()
authorPaul Mackerras <paulus@samba.org>
Mon, 3 Nov 2014 04:46:43 +0000 (15:46 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 12 Nov 2014 04:54:29 +0000 (15:54 +1100)
commit7048c846949ac1feb09d1b624ea0e8c351d92a7b
treeec6707704c3afbb88ee9e2f1ff7fd454839a9027
parent8b91a2554610ac5e341de8fb0b5715fe90a0f2e2
powerpc: Fix compilation of emulate_step()

Commit be96f63375a1 ("powerpc: Split out instruction analysis
part of emulate_step()") added some calls to do_fp_load()
and do_fp_store(), which fail to compile on configs with
CONFIG_PPC_FPU=n and CONFIG_PPC_EMULATE_SSTEP=y.  This fixes
the compile by adding #ifdef CONFIG_PPC_FPU around the code
that calls these functions.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/sstep.c