alpha.c (override_options): ev6 cache latencies from Richard Henderson.
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Sep 2000 19:02:22 +0000 (21:02 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Sep 2000 19:02:22 +0000 (21:02 +0200)
* config/alpha/alpha.c (override_options): ev6 cache latencies
from Richard Henderson.  Don't allow -mmemory-latency=L0.

From-SVN: r36444

gcc/ChangeLog
gcc/config/alpha/alpha.c

index c823362ca72efd6d8f36c45eb93d4f4b3f2a4851..4be01e775851df0d5f85bf6fd5ed59a1643460ee 100644 (file)
@@ -1,5 +1,8 @@
 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
 
+       * config/alpha/alpha.c (override_options): ev6 cache latencies
+       from Richard Henderson.  Don't allow -mmemory-latency=L0.
+
        * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
        (TARGET_OPTIONS): Add tune=.
        (alpha_tune_string): Declare.
index 04d8cc99c448a183c61fdc6cb89b6b874d2bd80f..382f9358204d1776280ec592456f8fbf2265b984 100644 (file)
@@ -309,11 +309,11 @@ override_options ()
        {
          { 3, 30, -1 },        /* ev4 -- Bcache is a guess */
          { 2, 12, 38 },        /* ev5 -- Bcache from PC164 LMbench numbers */
-         { 3, 13, -1 },        /* ev6 -- Ho hum, doesn't exist yet */
+         { 3, 12, 30 },        /* ev6 -- Bcache from DS20 LMbench. */
        };
 
        lat = alpha_mlat_string[1] - '0';
-       if (lat < 0 || lat > 3 || cache_latency[alpha_cpu][lat-1] == -1)
+       if (lat <= 0 || lat > 3 || cache_latency[alpha_cpu][lat-1] == -1)
          {
            warning ("L%d cache latency unknown for %s",
                     lat, alpha_cpu_name[alpha_cpu]);