6a800f36ac
This patch add the handlers of SPE/EFP exceptions. The code is used to emulate float point arithmetic, when MSR(SPE) is enabled and receive EFP data interrupt or EFP round interrupt. This patch has no conflict with or dependence on FP math-emu. The code has been tested by TestFloat. Now the code doesn't support SPE/EFP instructions emulation (it won't be called when receive program interrupt), but it could be easily added. Signed-off-by: Liu Yu <yu.liu@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
20 lines
580 B
Makefile
20 lines
580 B
Makefile
|
|
obj-y := math.o fmr.o lfd.o stfd.o
|
|
|
|
obj-$(CONFIG_MATH_EMULATION) += fabs.o fadd.o fadds.o fcmpo.o fcmpu.o \
|
|
fctiw.o fctiwz.o fdiv.o fdivs.o \
|
|
fmadd.o fmadds.o fmsub.o fmsubs.o \
|
|
fmul.o fmuls.o fnabs.o fneg.o \
|
|
fnmadd.o fnmadds.o fnmsub.o fnmsubs.o \
|
|
fres.o frsp.o frsqrte.o fsel.o lfs.o \
|
|
fsqrt.o fsqrts.o fsub.o fsubs.o \
|
|
mcrfs.o mffs.o mtfsb0.o mtfsb1.o \
|
|
mtfsf.o mtfsfi.o stfiwx.o stfs.o
|
|
|
|
obj-$(CONFIG_SPE) += math_efp.o
|
|
|
|
CFLAGS_fabs.o = -fno-builtin-fabs
|
|
CFLAGS_math.o = -fno-builtin-fabs
|
|
|
|
EXTRA_CFLAGS = -I. -Iinclude/math-emu -w
|