Xilinx Virtex 4 FX Soft FPU support
RFC PATCH v3 1/1 Xilinx Virtex 4 FX Soft FPU support
This patch enables support for Xilinx Virtex 4 FX singe-float FPU.
Changelog v2-v3:
-Fixed whitespaces for SAVE_FPR/REST_FPR. -Changed description of MSR_AP bit. -Removed the stub for APU unavailable exception.
Changelog v1->v2:
-Added MSR_AP bit definition
-Renamed CONFIG_XILINX_FPU to CONFIG_XILINX_SOFTFPU, moved it to
'Platform support' and made it Virtex4-FX-only.
-Changed SAVE_FPR/REST_FPR definition style.
Caveats:
- Hard-float binaries which rely on in-kernel math emulation will give wrong results since they expect 64-bit double-precision instead of 32-bit single-precision numbers which Xilinx V4-FX Soft FPU produces.
arch/powerpc/include/asm/ppc_asm.h +9 -1
@@ -85,13 +85,21 @@#define REST_8GPRS (n, base) REST_4GPRS(n, base); REST_4GPRS(n+4, base)#define REST_10GPRS (n, base) REST_8GPRS(n, base); REST_2GPRS(n+8, base) + +#ifdef CONFIG_XILINX_SOFTFPU +#define SAVE_FPR (n, base) stfs n,THREAD_FPR0+8*TS_FPRWIDTH*(n)(base) +#define REST_FPR (n, base) lfs n,THREAD_FPR0+8*TS_FPRWIDTH*(n)(base) +#else #define SAVE_FPR (n, base) stfd n,THREAD_FPR0+8*TS_FPRWIDTH*(n)(base) +#define REST_FPR (n, base) lfd n,THREAD_FPR0+8*TS_FPRWIDTH*(n)(base) +#endif +#define SAVE_2FPRS (n, base) SAVE_FPR(n, base); SAVE_FPR(n+1, base)#define SAVE_4FPRS (n, base) SAVE_2FPRS(n, base); SAVE_2FPRS(n+2, base)#define SAVE_8FPRS (n, base) SAVE_4FPRS(n, base); SAVE_4FPRS(n+4, base)#define SAVE_16FPRS (n, base) SAVE_8FPRS(n, base); SAVE_8FPRS(n+8, base)#define SAVE_32FPRS (n, base) SAVE_16FPRS(n, base); SAVE_16FPRS(n+16, base) -#define REST_FPR (n, base) lfd n,THREAD_FPR0+8*TS_FPRWIDTH*(n)(base) +#define REST_2FPRS (n, base) REST_FPR(n, base); REST_FPR(n+1, base)#define REST_4FPRS (n, base) REST_2FPRS(n, base); REST_2FPRS(n+2, base)#define REST_8FPRS (n, base) REST_4FPRS(n, base); REST_4FPRS(n+4, base)
arch/powerpc/include/asm/reg.h +2 -0
@@ -30,6 +30,7 @@#define MSR_ISF_LG 61/* Interrupt 64b mode valid on 630 */ #define MSR_HV_LG 60/* Hypervisor state */ #define MSR_VEC_LG 25/* Enable AltiVec */ +#define MSR_AP_LG 25/* Enable PPC405 APU */ #define MSR_VSX_LG 23/* Enable VSX */ #define MSR_POW_LG 18/* Enable Power Management */ #define MSR_WE_LG 18/* Wait State Enable */
@@ -71,6 +72,7 @@#define MSR_HV 0#endif +#define MSR_AP __MASK(MSR_AP_LG)/* Enable PPC405 APU */ #define MSR_VEC __MASK(MSR_VEC_LG)/* Enable AltiVec */ #define MSR_VSX __MASK(MSR_VSX_LG)/* Enable VSX */ #define MSR_POW __MASK(MSR_POW_LG)/* Enable Power Management */
arch/powerpc/kernel/fpu.S +15 -0
@@ -57,6 +57,9 @@ _GLOBAL(load_up_fpu) mfmsr r5 ori r5,r5,MSR_FP +#ifdef CONFIG_XILINX_SOFTFPU + oris r5,r5,MSR_AP@h +#endif #ifdef CONFIG_VSX BEGIN_FTR_SECTION oris r5,r5,MSR_VSX@h
@@ -85,6 +88,9 @@ toreal(r5) PPC_LL r4,_MSR-STACK_FRAME_OVERHEAD(r5) li r10,MSR_FP|MSR_FE0|MSR_FE1 +#ifdef CONFIG_XILINX_SOFTFPU + oris r10,r10,MSR_AP@h +#endif andc r4,r4,r10 /* disable FP for previous task */ PPC_STL r4,_MSR-STACK_FRAME_OVERHEAD(r5) 1:
@@ -94,6 +100,9 @@ mfspr r5,SPRN_SPRG3 /* current task's THREAD (phys) */ lwz r4,THREAD_FPEXC_MODE(r5) ori r9,r9,MSR_FP /* enable FP for current */ +#ifdef CONFIG_XILINX_SOFTFPU + oris r9,r9,MSR_AP@h +#endif or r9,r9,r4 #else ld r4,PACACURRENT(r13)
@@ -124,6 +133,9 @@ _GLOBAL(giveup_fpu) mfmsr r5 ori r5,r5,MSR_FP +#ifdef CONFIG_XILINX_SOFTFPU + oris r5,r5,MSR_AP@h +#endif #ifdef CONFIG_VSX BEGIN_FTR_SECTION oris r5,r5,MSR_VSX@h
@@ -145,6 +157,9 @@ beq 1f PPC_LL r4,_MSR-STACK_FRAME_OVERHEAD(r5) li r3,MSR_FP|MSR_FE0|MSR_FE1 +#ifdef CONFIG_XILINX_SOFTFPU + oris r3,r3,MSR_AP@h +#endif #ifdef CONFIG_VSX BEGIN_FTR_SECTION oris r3,r3,MSR_VSX@h
arch/powerpc/kernel/head_40x.S +14 -0
@@ -420,7 +420,19 @@ addi r3,r1,STACK_FRAME_OVERHEAD EXC_XFER_STD(0x700, program_check_exception) +/* 0x0800 - FPU unavailable Exception */ +#ifdef CONFIG_PPC_FPU + START_EXCEPTION(0x0800, FloatingPointUnavailable) + NORMAL_EXCEPTION_PROLOG + beq 1f; \ + bl load_up_fpu; /* if from user, just load it up */ \ + b fast_exception_return; \ +1: addi r3,r1,STACK_FRAME_OVERHEAD; \ + EXC_XFER_EE_LITE(0x800, kernel_fp_unavailable_exception) +#else EXCEPTION(0x0800, Trap_08, unknown_exception, EXC_XFER_EE) +#endif + EXCEPTION(0x0900, Trap_09, unknown_exception, EXC_XFER_EE) EXCEPTION(0x0A00, Trap_0A, unknown_exception, EXC_XFER_EE) EXCEPTION(0x0B00, Trap_0B, unknown_exception, EXC_XFER_EE)
@@ -821,8 +833,10 @@ * The PowerPC 4xx family of processors do not have an FPU, so this just * returns. */ +#ifndef CONFIG_PPC_FPU _ENTRY(giveup_fpu) blr +#endif /* This is where the main kernel code starts. */
arch/powerpc/platforms/Kconfig +5 -0
@@ -333,4 +333,9 @@ bool "Xilinx PCI host bridge support" depends on PCI && XILINX_VIRTEX +config XILINX_SOFTFPU + bool "Xilinx Soft FPU" + select PPC_FPU + depends on XILINX_VIRTEX_4_FX && !PPC40x_SIMPLE && !405GP && !405GPR + endmenu
Signature · 2 lines
Regards, Sergey Temerkhanov, Cifronic ZAO
Quoted 10 lines · Sergey Temerkhanov
This patch enables support for Xilinx Virtex 4 FX singe-float FPU.
Changelog v2-v3:
=9A =9A =9A =9A-Fixed whitespaces for SAVE_FPR/REST_FPR. =9A =9A =9A =9A-Changed description ofMSR_APbit. =9A =9A =9A =9A-Removed the stub for APU unavailable exception.Changelog
v1->v2:
=9A =9A =9A =9A-AddedMSR_APbit definition
=9A =9A =9A =9A-RenamedCONFIG_XILINX_FPUtoCONFIG_XILINX_SOFTFPU, moved=
it to
Quoted 5 lines
=9A =9A =9A =9A 'Platform support' and made it Virtex4-FX-only. =9A =9A =9A =9A-Changed SAVE_FPR/REST_FPR definition style.
Caveats:
=9A =9A =9A =9A- Hard-float binaries which rely on in-kernel math emulati=
on will
Quoted 1 line
=9A =9A =9A =9Agive wrong results since they expect 64-bit double-precisi=
on instead of
Quoted 1 line
=9A =9A =9A =9A32-bit single-precision numbers which Xilinx V4-FX Soft FP=
U produces.
Quoted 3 lines
Signed-off-by Sergey Temerkhanov<[email protected]>
Seems okay to me. Josh & Ben, what do you think?
Quoted 3 lines
diff -r
626de0d94469arch/powerpc/include/asm/ppc_asm.h
---a/arch/powerpc/include/asm/ppc_asm.h=9A =9A =9A =9AWed May 26 15:33:=
32 2010 +0400
Quoted 1 line
+++
b/arch/powerpc/include/asm/ppc_asm.h=9A =9A =9A =9AWed May 26 20:30:=
43 2010 +0400
Quoted 2 lines
(quoted diff) +0
-0@@ -85,13 +85,21 @@=9A#define
REST_8GPRS(n, base)=9A =9AREST_4GPRS(n, base); REST_4GPRS(n+4=
, base)
Quoted 1 line
=9A#define
REST_10GPRS(n, base)=9AREST_8GPRS(n, base); REST_2GPRS(n+8, =
base)
arch/powerpc/include/asm/ppc_asm.h
Quoted 4 lines
arch/powerpc/include/asm/ppc_asm.h +3
-0+ +#ifdef CONFIG_XILINX_SOFTFPU +#define SAVE_FPR (n, base) =9A =9A =9Astfs =9A =9An,THREAD_FPR0+8*TS_FPRW=
IDTH*(n)(base)
Quoted 1 line
+#define
REST_FPR(n, base)=9A =9A =9Alfs =9A =9A n,THREAD_FPR0+8*TS_FPRW=
IDTH*(n)(base)
Quoted 2 lines
+#else
=9A#defineSAVE_FPR(n, base)=9A =9A =9Astfd =9A =9An,THREAD_FPR0+8*TS_FP=
RWIDTH*(n)(base)
Quoted 1 line
+#define
REST_FPR(n, base)=9A =9A =9Alfd =9A =9A n,THREAD_FPR0+8*TS_FPRW=
IDTH*(n)(base)
Quoted 3 lines
(quoted diff) +2
-0+#endif +=9A#define
SAVE_2FPRS(n, base)=9A =9ASAVE_FPR(n, base); SAVE_FPR(n+1, ba=
se)
Quoted 1 line
=9A#define
SAVE_4FPRS(n, base)=9A =9ASAVE_2FPRS(n, base); SAVE_2FPRS(n+2=
, base)
Quoted 1 line
=9A#define
SAVE_8FPRS(n, base)=9A =9ASAVE_4FPRS(n, base); SAVE_4FPRS(n+4=
, base)
Quoted 1 line
=9A#define
SAVE_16FPRS(n, base)=9ASAVE_8FPRS(n, base); SAVE_8FPRS(n+8, =
base)
Quoted 1 line
=9A#define
SAVE_32FPRS(n, base)=9ASAVE_16FPRS(n, base); SAVE_16FPRS(n+1=
6, base)
Quoted 1 line
-#define
REST_FPR(n, base)=9A =9A =9Alfd =9A =9A n,THREAD_FPR0+8*TS_FPRW=
IDTH*(n)(base)
Quoted 2 lines
+
=9A#defineREST_2FPRS(n, base)=9A =9AREST_FPR(n, base); REST_FPR(n+1, ba=
se)
Quoted 1 line
=9A#define
REST_4FPRS(n, base)=9A =9AREST_2FPRS(n, base); REST_2FPRS(n+2=
, base)
Quoted 1 line
=9A#define
REST_8FPRS(n, base)=9A =9AREST_4FPRS(n, base); REST_4FPRS(n+4=
, base)
Quoted 2 lines
diff -r
626de0d94469arch/powerpc/include/asm/reg.h
---a/arch/powerpc/include/asm/reg.h=9A =9AWed May 26 15:33:32 2010 +040=
0
Quoted 1 line
+++
b/arch/powerpc/include/asm/reg.h=9A =9AWed May 26 20:30:43 2010 +040=
0
Quoted 2 lines
(quoted diff) +0
-0@@ -30,6 +30,7 @@=9A#define
MSR_ISF_LG=9A =9A 61 =9A =9A =9A =9A =9A =9A =9A/* Interrupt =
64b mode valid on 630 */
Quoted 1 line
=9A#define
MSR_HV_LG=9A =9A =9A60 =9A =9A =9A =9A =9A =9A =9A/* Hypervis=
or state */
Quoted 1 line
=9A#define
MSR_VEC_LG=9A =9A 25 =9A =9A =9A =9A =9A =9A =9A/* Enable Alt=
iVec */
Quoted 1 line
+#define
MSR_AP_LG=9A =9A =9A25 =9A =9A =9A =9A =9A =9A =9A/* Enable PPC=
405 APU */
Quoted 1 line
=9A#define
MSR_VSX_LG=9A =9A 23 =9A =9A =9A =9A =9A =9A =9A/* Enable VSX=
*/
Quoted 1 line
=9A#define
MSR_POW_LG=9A =9A 18 =9A =9A =9A =9A =9A =9A =9A/* Enable Pow=
er Management */
Quoted 1 line
=9A#define
MSR_WE_LG=9A =9A =9A18 =9A =9A =9A =9A =9A =9A =9A/* Wait Sta=
te Enable */
Quoted 5 lines
(quoted diff) +0
-0@@ -71,6 +72,7 @@=9A#define
MSR_HV=9A =9A =9A =9A 0
=9A#endif+#define
MSR_AP=9A =9A =9A =9A__MASK(MSR_AP_LG)=9A =9A =9A /* Enable P=
PC405 APU */
Quoted 1 line
=9A#define
MSR_VEC=9A =9A =9A =9A =9A =9A =9A =9A__MASK(MSR_VEC_LG) =9A =
=9A =9A/* Enable AltiVec */
Quoted 1 line
=9A#define
MSR_VSX=9A =9A =9A =9A =9A =9A =9A =9A__MASK(MSR_VSX_LG) =9A =
=9A =9A/* Enable VSX */
Quoted 1 line
=9A#define
MSR_POW=9A =9A =9A =9A =9A =9A =9A =9A__MASK(MSR_POW_LG) =9A =
=9A =9A/* Enable Power Management */
Quoted 20 lines
diff -r
626de0d94469arch/powerpc/kernel/fpu.Sarch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +0
-0@@ -57,6 +57,9 @@ =9A_GLOBAL(load_up_fpu)=9A =9A =9A =9Amfmsr =9A r5
=9A =9A =9A =9Aori =9A =9A r5,r5,MSR_FParch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +3
-0+#ifdef CONFIG_XILINX_SOFTFPU + =9A =9A =9A oris =9A =9Ar5,r5,MSR_AP@h +#endif=9A#ifdef
CONFIG_VSX
=9ABEGIN_FTR_SECTION
=9A =9A =9A =9Aoris =9A =9Ar5,r5,MSR_VSX@harch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +0
-0@@ -85,6 +88,9 @@ =9A =9A =9A =9Atoreal(r5) =9A =9A =9A =9APPC_LL =9Ar4,_MSR-STACK_FRAME_OVERHEAD(r5)=9A =9A =9A =9Ali =9A =9A =9Ar10,MSR_FP|MSR_FE0|MSR_FE1
arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +3
-0+#ifdef CONFIG_XILINX_SOFTFPU + =9A =9A =9A oris =9A =9Ar10,r10,MSR_AP@h +#endif
Quoted 1 line
=9A =9A =9A =9Aandc =9A =9Ar4,r4,r10 =9A =9A =9A =9A =9A =9A =9A /* disab=
le FP for previous task */
Quoted 4 lines
=9A =9A =9A =9APPC_STL r4,_MSR-STACK_FRAME_OVERHEAD(r5) =9A1:
arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +0
-0@@ -94,6 +100,9 @@=9A =9A =9A =9Amfspr =9A r5,SPRN_SPRG3 =9A =9A =9A =9A =9A /* current tas=
k's THREAD (phys) */
Quoted 2 lines
=9A =9A =9A =9Alwz =9A =9A r4,THREAD_FPEXC_MODE(r5)
=9A =9A =9A =9Aori =9A =9A r9,r9,MSR_FP =9A =9A =9A =9A =9A =9A/* enable =
FP for current */
Quoted 23 lines
arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +3
-0+#ifdef CONFIG_XILINX_SOFTFPU + =9A =9A =9A oris =9A =9Ar9,r9,MSR_AP@h +#endif=9A =9A =9A =9Aor =9A =9A =9Ar9,r9,r4
=9A#else
=9A =9A =9A =9Ald =9A =9A =9Ar4,PACACURRENT(r13)arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +0
-0@@ -124,6 +133,9 @@ =9A_GLOBAL(giveup_fpu)=9A =9A =9A =9Amfmsr =9A r5
=9A =9A =9A =9Aori =9A =9A r5,r5,MSR_FParch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +3
-0+#ifdef CONFIG_XILINX_SOFTFPU + =9A =9A =9A oris =9A =9Ar5,r5,MSR_AP@h +#endif=9A#ifdef
CONFIG_VSX
=9ABEGIN_FTR_SECTION
=9A =9A =9A =9Aoris =9A =9Ar5,r5,MSR_VSX@harch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +0
-0@@ -145,6 +157,9 @@=9A =9A =9A =9Abeq =9A =9A 1f
=9A =9A =9A =9APPC_LL =9Ar4,_MSR-STACK_FRAME_OVERHEAD(r5) =9A =9A =9A =9Ali =9A =9A =9Ar3,MSR_FP|MSR_FE0|MSR_FE1arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +3
-0+#ifdef CONFIG_XILINX_SOFTFPU + =9A =9A =9A oris =9A =9Ar3,r3,MSR_AP@h +#endif
Quoted 5 lines
=9A#ifdef
CONFIG_VSX
=9ABEGIN_FTR_SECTION
=9A =9A =9A =9Aoris =9A =9Ar3,r3,MSR_VSX@h
diff -r626de0d94469arch/powerpc/kernel/head_40x.S
---a/arch/powerpc/kernel/head_40x.S=9A =9AWed May 26 15:33:32 2010 +040=
0
Quoted 1 line
+++
b/arch/powerpc/kernel/head_40x.S=9A =9AWed May 26 20:30:43 2010 +040=
0
arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400
Quoted 9 lines
arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +0
-0@@ -420,7 +420,19 @@=9A =9A =9A =9Aaddi =9A =9Ar3,r1,STACK_FRAME_OVERHEAD =9A =9A =9A =9AEXC_XFER_STD(0x700,
program_check_exception)arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +5
-0+/* 0x0800 - FPU unavailable Exception */ +#ifdef CONFIG_PPC_FPU + =9A =9A =9A START_EXCEPTION(0x0800, FloatingPointUnavailable) + =9A =9A =9A NORMAL_EXCEPTION_PROLOG + =9A =9A =9A beq =9A =9A 1f; =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A=
=9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A \
Quoted 1 line
+ =9A =9A =9A bl =9A =9A =9Aload_up_fpu; =9A =9A =9A =9A =9A =9A/* if fro=
m user, just load it up */ =9A \
Quoted 1 line
+ =9A =9A =9A b =9A =9A =9A
fast_exception_return; =9A =9A =9A =9A =9A =
=9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A\
Quoted 1 line
+1: =9A =9A addi =9A =9Ar3,r1,STACK_FRAME_OVERHEAD; =9A =9A =9A =9A =9A =
=9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A =9A \
Quoted 10 lines
+ =9A =9A =9A
EXC_XFER_EE_LITE(0x800, kernel_fp_unavailable_exception)+#else
=9A =9A =9A =9AEXCEPTION(0x0800,Trap_08,unknown_exception,EXC_XFER_EE)arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +2
-0+#endif +=9A =9A =9A =9AEXCEPTION(0x0900,
Trap_09,unknown_exception,EXC_XFER_EE) =9A =9A =9A =9AEXCEPTION(0x0A00,Trap_0A,unknown_exception,EXC_XFER_EE) =9A =9A =9A =9AEXCEPTION(0x0B00,Trap_0B,unknown_exception,EXC_XFER_EE)arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +0
-0@@ -821,8 +833,10 @@=9A* The PowerPC 4xx family of processors do not have an FPU, so this jus=
t
Quoted 11 lines
=9A* returns.
=9A*/
+#ifndefCONFIG_PPC_FPU
=9A_ENTRY(giveup_fpu)
=9A =9A =9A =9Ablr
+#endif=9A/* This is where the main kernel code starts.
=9A*/
diff -r626de0d94469arch/powerpc/platforms/Kconfig
--- a/arch/powerpc/platforms/Kconfig =9A =9AWed May 26 15:33:32 2010 +040=
0
Quoted 1 line
+++ b/arch/powerpc/platforms/Kconfig =9A =9AWed May 26 20:30:43 2010 +040=
0
Quoted 8 lines
arch/powerpc/kernel/fpu.S Wed May 26 20:30:43 2010 +0400 renamed from arch/powerpc/kernel/fpu.S Wed May 26 15:33:32 2010 +0400 +0
-0@@ -333,4 +333,9 @@=9A =9A =9A =9Abool "Xilinx PCI host bridge support" =9A =9A =9A =9Adepends on PCI &&
XILINX_VIRTEX+config
XILINX_SOFTFPU
+ =9A =9A =9A bool "Xilinx Soft FPU"
+ =9A =9A =9A selectPPC_FPU
+ =9A =9A =9A depends onXILINX_VIRTEX_4_FX&& !PPC40x_SIMPLE && !405GP &=
& !405GPR
Quoted 7 lines
+
=9Aendmenu--
Regards, Sergey Temerkhanov,
Cifronic ZAO
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Quoted 2 lines
-----Original Message-----
From: linuxppc-dev-bounces+stephen=3Dneuendorffer.name@lists.ozlabs.org [=
mailto:linuxppc-dev-
Quoted 1 line
[email protected]] On Behalf Of Grant =
Likely
Quoted 6 lines
Sent: Wednesday, June 16, 2010 1:02 PM
To: Sergey Temerkhanov
Cc: [email protected]; John Linn
Subject: Re: [PATCHv3] [RFC] Xilinx Virtex 4 FX Soft FPU support =
Quoted 12 lines
Quoted 10 lines · Sergey Temerkhanov
This patch enables support for Xilinx Virtex 4 FX singe-float FPU.
Changelog v2-v3:
=A0 =A0 =A0 =A0-Fixed whitespaces for SAVE_FPR/REST_FPR. =A0 =A0 =A0 =A0-Changed description ofMSR_APbit. =A0 =A0 =A0 =A0-Removed the stub for APU unavailable exception.Changelog
v1->v2:
=A0 =A0 =A0 =A0-AddedMSR_APbit definition
=A0 =A0 =A0 =A0-RenamedCONFIG_XILINX_FPUtoCONFIG_XILINX_SOFTFPU, mov=
ed it to
Quoted 5 lines
Quoted 5 lines
=A0 =A0 =A0 =A0 'Platform support' and made it Virtex4-FX-only. =A0 =A0 =A0 =A0-Changed SAVE_FPR/REST_FPR definition style.
Caveats:
=A0 =A0 =A0 =A0- Hard-float binaries which rely on in-kernel math emula=
tion will
Quoted 1 line
Quoted 1 line
=A0 =A0 =A0 =A0give wrong results since they expect 64-bit double-preci=
sion instead of
Quoted 1 line
Quoted 1 line
=A0 =A0 =A0 =A032-bit single-precision numbers which Xilinx V4-FX Soft =
FPU produces.
Perhaps this caveat should go in the description of the configuration optio= n?
Steve
This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately.