This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1/5] spe-add-platform-config


The SPE/SPU stands for Special Purpose Engine/Unit. Each cell processor consists of one or more (currently 1) PowerPC main processor and one or more (currently 8) SPEs. Newlib on the PowerPC side needs no special modification, therefore to support cell only the SPU/SPE support needs to be added.

This patch adds the config option for the new platform.

SPU enablement
Index: newlib-1.14.0/config.sub
===================================================================
--- newlib-1.14.0.orig/config.sub
+++ newlib-1.14.0/config.sub
@@ -115,6 +115,15 @@ case $# in
     exit 1;;
 esac
 
+case $1 in 
+        spu)
+                set spu-unknown-elf
+                ;;
+        *)
+                ;;
+esac
+
+
 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
 # Here we must recognize all the valid KERNEL-OS combinations.
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
@@ -287,6 +296,9 @@ case $basic_machine in
 	m32c)
 		basic_machine=$basic_machine-unknown
 		;;
+	spu)
+		basic_machine=$basic_machine-unknown
+		;;
 	m6811 | m68hc11 | m6812 | m68hc12)
 		# Motorola 68HC11/12.
 		basic_machine=$basic_machine-unknown
@@ -372,6 +384,8 @@ case $basic_machine in
 		;;
 	m32c-*)
 		;;
+	spu-*)
+		;;
 	# Recognize the various machine names and aliases which stand
 	# for a CPU type and a company and sometimes even an OS.
 	386bsd)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]