crosstool-ng/arch/powerpc/functions
Yann E. MORIN" 05781a223c 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(+)
2008-08-12 09:56:19 +00:00

23 lines
633 B
Plaintext

# Compute powerpc-specific values
CT_DoArchValues () {
# The architecture part of the tuple:
CT_TARGET_ARCH="${CT_ARCH}"
# The kernel ARCH:
CT_KERNEL_ARCH=powerpc
# Add spe in the tuplet if needed
case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
glibc,|eglibc,) CT_TARGET_SYS=gnu;;
glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
esac
# Add extra flags for SPE if needed
if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
fi
}