Add SPE extensions support for PowerPC (after a work by Thomas JOURDAN).
Add a PowerPC sample that supports SPE extensions.
/trunk/arch/powerpc/functions | 13 13 0 0 +
/trunk/arch/powerpc/config.in | 8 8 0 0 +
/trunk/patches/gcc/4.3.1/340-make-mno-spe-work-as-expected.patch | 90 90 0 0 ++++
/trunk/samples/powerpc-unknown-linux-gnuspe/crosstool.config | 309 309 0 0 ++++++++++++++
4 files changed, 420 insertions(+)
1 # Compute powerpc-specific values
4 # The architecture part of the tuple:
5 CT_TARGET_ARCH="${CT_ARCH}"
10 # Add spe in the tuplet if needed
11 case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
12 glibc,|eglibc,) CT_TARGET_SYS=gnu;;
13 glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
16 # Add extra flags for SPE if needed
17 if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
18 CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
19 CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
20 CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"