diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-10-24 20:21:41 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-10-24 20:21:41 +0000 |
commit | cb6d07543e936d4286bc75e92f4257bda86484df (patch) | |
tree | 1e7130d06cea9e504fdbddb0864e4574faf6c389 /lib/make | |
parent | fb4b02a25c8b94f20a8e8e846a5c4f735985958c (diff) |
Set L2_CACHELINE_BYTES (= 128) and L2_CACHE_SIZE (= 2MB) for the IA64.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2433 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rw-r--r-- | lib/make/known-architectures/linux | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux index 7384c401..665325cc 100644 --- a/lib/make/known-architectures/linux +++ b/lib/make/known-architectures/linux @@ -268,6 +268,10 @@ else L2_CACHELINE_BYTES=32 echo "Setting L2_CACHELINE_BYTES to $L2_CACHELINE_BYTES" ;; + ia64) + L2_CACHELINE_BYTES=128 + echo "Setting L2_CACHELINE_BYTES to $L2_CACHELINE_BYTES" + ;; *) echo "Don't know cache size for cpu $host_cpu" ;; @@ -277,9 +281,14 @@ else if test -z "$L2_CACHE_SIZE" ; then if test "x$cross_compiling" = "xno" ; then - TEMP_CACHE_SIZE="`cat /proc/cpuinfo | perl -nae 'if(m:cache: && ! $dunnit) {print $F[3]; $dunnit=1}'`" - if test -n "$TEMP_CACHE_SIZE" ; then - L2_CACHE_SIZE="$TEMP_CACHE_SIZE*1024" + if test "$host_cpu" = "ia64"; then + # for IA64 set it to 2MB for now (actually it's the L3 cache size) + L2_CACHE_SIZE=2*1024 + else + L2_CACHE_SIZE="`cat /proc/cpuinfo | perl -nae 'if(m:cache: && ! $dunnit) {print $F[3]; $dunnit=1}'`" + fi + if test -n "$L2_CACHE_SIZE" ; then + L2_CACHE_SIZE="$L2_CACHE_SIZE*1024" echo "Setting L2_CACHE_SIZE to $L2_CACHE_SIZE bytes" else echo "Unable to determine L2 Cache size on this machine. " |