aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-16 16:42:16 +0000
committerlloyd <[email protected]>2008-09-16 16:42:16 +0000
commit619404d046541311c5336e02c730d2429f6b2585 (patch)
treec0f40eb9462ddd78d23627674d59e3018454a953
parent33af4a6f61b98c22c8d3af92732891733f204b9a (diff)
Better autodetection support for the Cell PPU and ppc64 machines generally.
-rwxr-xr-xconfigure.pl2
-rw-r--r--misc/config/arch/ppc641
-rw-r--r--misc/config/cc/gcc1
3 files changed, 4 insertions, 0 deletions
diff --git a/configure.pl b/configure.pl
index ec7fbc609..01b6b5586 100755
--- a/configure.pl
+++ b/configure.pl
@@ -1816,11 +1816,13 @@ sub guess_cpu_from_this
$cpu = 'sparc32-v9' if($cpuinfo =~ /ultrasparc/);
# 64-bit PowerPC
+ $cpu = 'ppc64' if($cpuinfo =~ /ppc64/);
$cpu = 'rs64a' if($cpuinfo =~ /rs64-/);
$cpu = 'power3' if($cpuinfo =~ /power3/);
$cpu = 'power4' if($cpuinfo =~ /power4/);
$cpu = 'power5' if($cpuinfo =~ /power5/);
$cpu = 'ppc970' if($cpuinfo =~ /ppc970/);
+ $cpu = 'cellppu' if($cpuinfo = ~/cell broadband engine/);
# Ooh, an Alpha. Try to figure out what kind
if($cpuinfo =~ /alpha/)
diff --git a/misc/config/arch/ppc64 b/misc/config/arch/ppc64
index 2bb789949..f5926b789 100644
--- a/misc/config/arch/ppc64
+++ b/misc/config/arch/ppc64
@@ -14,4 +14,5 @@ ppc970
power3
power4
power5
+cellppu
</submodels>
diff --git a/misc/config/cc/gcc b/misc/config/cc/gcc
index 376817947..78dfffcfd 100644
--- a/misc/config/cc/gcc
+++ b/misc/config/cc/gcc
@@ -46,6 +46,7 @@ ppc601 -> "-mpowerpc -mcpu=601"
sparc64-ultra3 -> "-mcpu=v9 -mtune=ultrasparc3"
em64t -> "-march=nocona -momit-leaf-frame-pointer"
+cellppu -> ""
# Default family options (SUBMODEL is substitued with the real submodel)
# Anything after the quotes is what should be *removed* from the submodel name