Changeset 25018


Ignore:
Timestamp:
2011-01-16T02:25:06+01:00 (7 years ago)
Author:
nbd
Message:

mpc85xx: add a new 'spe_fpu' feature flag for the FPU used on freescale powerpc cpus
The SPE FPU is ABI-incompatible with the regular powerpc FPU,
this needs to be reflected in the toolchain target name.
Fixes floating point crashes in user space

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.mk

    r24551 r25018  
    6969ifneq ($(findstring -march=armv5te,$(TARGET_OPTIMIZATION)),) 
    7070  ARCH_SUFFIX:=_v5te 
     71endif 
     72ifdef CONFIG_HAS_SPE_FPU 
     73  TARGET_SUFFIX:=$(TARGET_SUFFIX)spe 
    7174endif 
    7275 
  • trunk/scripts/metadata.pl

    r24084 r25018  
    169169                /ubifs/ and $ret .= "\tselect USES_UBIFS\n"; 
    170170                /fpu/ and $ret .= "\tselect HAS_FPU\n"; 
     171                /spe_fpu/ and $ret .= "\tselect HAS_SPE_FPU\n"; 
    171172                /ramdisk/ and $ret .= "\tselect USES_INITRAMFS\n"; 
    172173                /powerpc64/ and $ret .= "\tselect powerpc64\n"; 
  • trunk/target/Config.in

    r24084 r25018  
    22 
    33# Kernel/Hardware features 
     4 
     5config HAS_SPE_FPU 
     6        depends powerpc 
     7        select HAS_FPU 
     8        bool 
    49 
    510config HAS_FPU 
  • trunk/target/linux/mpc85xx/Makefile

    r24486 r25018  
    1111BOARDNAME:=Freescale MPC85xx 
    1212CFLAGS:=-Os -pipe -funit-at-a-time -mcpu=8540 
    13 FEATURES:=fpu ramdisk broken 
     13FEATURES:=spe_fpu ramdisk broken 
    1414MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> 
    1515 
Note: See TracChangeset for help on using the changeset viewer.