1
0
Files
linux/include/asm-powerpc
Kim Phillips aa42c69c67 [POWERPC] Add support for FP emulation for the e300c2 core
The e300c2 has no FPU.  Its MSR[FP] is grounded to zero.  If an attempt
is made to execute a floating point instruction (including floating-point
load, store, or move instructions), the e300c2 takes a floating-point
unavailable interrupt.

This patch adds support for FP emulation on the e300c2 by declaring a
new CPU_FTR_FP_TAKES_FPUNAVAIL, where FP unavail interrupts are
intercepted and redirected to the ProgramCheck exception path for
correct emulation handling.

(If we run out of CPU_FTR bits we could look to reclaim this bit by adding
support to test the cpu_user_features for PPC_FEATURE_HAS_FPU instead)

It adds a nop to the exception path for 32-bit processors with a FPU.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2006-12-08 02:43:30 -06:00
..
2006-01-09 14:49:54 +11:00
2006-11-01 14:52:48 +11:00
2006-12-04 20:39:30 +11:00
2006-12-04 16:08:25 +11:00
2006-12-04 20:39:02 +11:00
2006-10-07 22:08:26 +10:00
2006-12-04 20:40:44 +11:00
2006-02-15 15:32:22 -08:00
2006-07-03 15:27:00 -07:00
2006-12-07 08:39:25 -08:00
2006-09-26 08:48:51 -07:00
2006-06-30 18:20:44 +02:00
2006-11-13 14:44:58 +11:00
2006-12-04 15:59:07 +11:00
2006-10-25 11:54:18 +10:00
2005-10-31 13:37:12 +11:00
2005-11-03 16:24:25 +11:00
2006-06-29 16:58:06 -07:00
2006-12-04 20:40:52 +11:00
2006-10-25 14:20:20 +10:00
2005-11-03 16:02:23 +11:00
2006-03-25 09:41:40 -08:00
2006-11-16 10:31:14 +11:00
2005-11-01 14:36:55 +11:00
2006-10-25 11:54:18 +10:00
2006-12-04 20:41:21 +11:00
2005-11-03 16:59:17 +11:00
2006-12-07 08:39:37 -08:00