40c4c3de40
Summary: The Freescale e500v2 PowerPC core does not use a standard FPU. Instead, it uses a Signal Processing Engine (SPE)--a DSP-style vector processor unit, which doubles as a FPU. The PowerPC SPE ABI is incompatible with the stock powerpc ABI, so a new MACHINE_ARCH was created to deal with this. Additionaly, the SPE opcodes overlap with Altivec, so these are mutually exclusive. Taking advantage of this fact, a new file, powerpc/booke/spe.c, was created with the same function set as in powerpc/powerpc/altivec.c, so it becomes effectively a drop-in replacement. setjmp/longjmp were modified to save the upper 32-bits of the now-64-bit GPRs (upper 32-bits are only accessible by the SPE). Note: This does _not_ support the SPE in the e500v1, as the e500v1 SPE does not support double-precision floating point. Also, without a new MACHINE_ARCH it would be impossible to provide binary packages which utilize the SPE. Additionally, no work has been done to support ports, work is needed for this. This also means no newer gcc can yet be used. However, gcc's powerpc support has been refactored which would make adding a powerpcspe-freebsd target very easy. Test Plan: This was lightly tested on a RouterBoard RB800 and an AmigaOne A1222 (P1022-based) board, compiled against the new ABI. Base system utilities (/bin/sh, /bin/ls, etc) still function appropriately, the system is able to boot multiuser. Reviewed By: bdrewery, imp Relnotes: yes Differential Revision: https://reviews.freebsd.org/D5683 |
||
---|---|---|
.. | ||
aarch64 | ||
arm | ||
i386 | ||
ia64 | ||
mips | ||
riscv64 | ||
rs6000 | ||
s390 | ||
soft-fp | ||
sparc | ||
darwin9.h | ||
darwin-64.c | ||
darwin-c.c | ||
darwin-crt2.c | ||
darwin-crt3.c | ||
darwin-protos.h | ||
darwin-sections.def | ||
darwin.c | ||
darwin.h | ||
darwin.opt | ||
dbx.h | ||
dbxcoff.h | ||
dbxelf.h | ||
dfp-bit.c | ||
dfp-bit.h | ||
divmod.c | ||
elfos.h | ||
fixdfdi.c | ||
fixsfdi.c | ||
fixunsdfsi.c | ||
fixunssfsi.c | ||
floatdidf.c | ||
floatdisf.c | ||
floatundidf.c | ||
floatundisf.c | ||
floatunsidf.c | ||
floatunsisf.c | ||
floatunsitf.c | ||
floatunsixf.c | ||
fp-bit.c | ||
fp-bit.h | ||
freebsd-nthr.h | ||
freebsd-spec.h | ||
freebsd.h | ||
gnu.h | ||
gofast.h | ||
host-darwin.c | ||
host-darwin.h | ||
host-hpux.c | ||
host-linux.c | ||
host-solaris.c | ||
interix3.h | ||
interix.h | ||
kaos.h | ||
kfreebsd-gnu.h | ||
knetbsd-gnu.h | ||
libgcc-glibc.ver | ||
libgloss.h | ||
linux.h | ||
linux.opt | ||
lynx.h | ||
lynx.opt | ||
memcmp.c | ||
memcpy.c | ||
memmove.c | ||
memset.c | ||
netbsd-aout.h | ||
netbsd-elf.h | ||
netbsd.h | ||
openbsd-oldgas.h | ||
openbsd.h | ||
ptx4.h | ||
README | ||
rtems.h | ||
sol2-6.h | ||
sol2-10.h | ||
sol2-c.c | ||
sol2-protos.h | ||
sol2.c | ||
sol2.h | ||
svr3.h | ||
svr4.h | ||
t-darwin | ||
t-dfprules | ||
t-freebsd | ||
t-freebsd-thread | ||
t-gnu | ||
t-libc-ok | ||
t-libgcc-pic | ||
t-libunwind | ||
t-libunwind-elf | ||
t-linux | ||
t-lynx | ||
t-netbsd | ||
t-openbsd | ||
t-openbsd-thread | ||
t-rtems | ||
t-slibgcc-darwin | ||
t-slibgcc-elf-ver | ||
t-slibgcc-nolc-override | ||
t-slibgcc-sld | ||
t-sol2 | ||
t-svr4 | ||
t-vxworks | ||
tm-dwarf2.h | ||
udivmod.c | ||
udivmodsi4.c | ||
usegas.h | ||
vx-common.h | ||
vxlib.c | ||
vxworks.h | ||
vxworks.opt | ||
vxworksae.h | ||
windiss.h | ||
x-darwin | ||
x-hpux | ||
x-interix | ||
x-linux | ||
x-solaris |
This directory contains machine-specific files for the GNU C compiler. It has a subdirectory for each basic CPU type. The only files in this directory itself are some .h files that pertain to particular operating systems and are used for more than one CPU type.