aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-05-12 13:12:32 +0000
committerlloyd <[email protected]>2011-05-12 13:12:32 +0000
commitc0dadc0c4b14dadb8891b7cda35ba23bf4d31550 (patch)
tree71192a30389069c9b8057497230cdbb08cccc0e8 /src
parentd75753b365350bd2e330aecdd98abc89f73fca23 (diff)
Add support for targetting the PowerPCSPE (an embedded PPC with an
experimental Debian port), and add aliases for ARM to match the Debian architectures.
Diffstat (limited to 'src')
-rw-r--r--src/build-data/arch/arm.txt5
-rw-r--r--src/build-data/arch/ppc32.txt (renamed from src/build-data/arch/ppc.txt)13
-rw-r--r--src/build-data/cc/gcc.txt3
3 files changed, 16 insertions, 5 deletions
diff --git a/src/build-data/arch/arm.txt b/src/build-data/arch/arm.txt
index 14f88c362..b822fe130 100644
--- a/src/build-data/arch/arm.txt
+++ b/src/build-data/arch/arm.txt
@@ -2,6 +2,11 @@
endian little
family arm
+<aliases>
+armel # For Debian
+armhf # For Debian
+</aliases>
+
<submodels>
armv2
armv2a
diff --git a/src/build-data/arch/ppc.txt b/src/build-data/arch/ppc32.txt
index dc3ea7829..e33c8ff24 100644
--- a/src/build-data/arch/ppc.txt
+++ b/src/build-data/arch/ppc32.txt
@@ -5,13 +5,9 @@ family ppc
<aliases>
powerpc
+ppc
</aliases>
-<submodel_aliases>
-g3 -> ppc740
-g4 -> ppc7450
-</submodel_aliases>
-
<submodels>
ppc601
ppc603
@@ -20,8 +16,15 @@ ppc740
ppc750
ppc7400
ppc7450
+e500v2
</submodels>
+<submodel_aliases>
+g3 -> ppc740
+g4 -> ppc7450
+powerpcspe -> e500v2 # for Debian
+</submodel_aliases>
+
<isa_extn>
altivec:ppc7400,ppc7450
</isa_extn>
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt
index fd7b26cad..e7cbec514 100644
--- a/src/build-data/cc/gcc.txt
+++ b/src/build-data/cc/gcc.txt
@@ -46,6 +46,9 @@ ppc601 -> "-mpowerpc -mcpu=601"
# The patch from Debian bug 594159 has this, don't know why though...
sh4 -> "-m4 -mieee"
+# From http://wiki.debian.org/PowerPCSPEPort
+e500v2 -> "-mcpu=8548"
+
# Until GCC gets -march support for these models
nehalem -> "-march=core2 -msse4.1 -msse4.2"
westmere -> "-march=core2 -maes -msse4.1 -msse4.2"