From Toshiyasu Morita:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Mon, 1 Mar 1999 13:49:34 +0000 (13:49 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Mon, 1 Mar 1999 13:49:34 +0000 (13:49 +0000)
* sh.h (CACHE_LOG): SH2 has cache, too.

From-SVN: r25515

gcc/ChangeLog
gcc/config/sh/sh.h

index 71bbb255666044940fd0664d48071153f2fb41b5..8dd6b0f63e8bf2ed62dd3bd36dfc155219741e74 100644 (file)
@@ -1,3 +1,8 @@
+Mon Mar  1 21:44:30 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       From Toshiyasu Morita:
+       * sh.h (CACHE_LOG): SH2 has cache, too.
+
 Mon Mar  1 14:23:36 1999  Catherine Moore  <clm@cygnus.com>
  
         * toplev.c (compile_file):  Disable -ffunction-sections and
index 25416607347de2de03b17b2c26d15d1f9fdf0446..f8ae2c711839de6453c76a47fd6c930affcdea8c 100644 (file)
@@ -306,8 +306,9 @@ do {                                                                        \
 #define STACK_BOUNDARY  BIGGEST_ALIGNMENT
 
 /* The log (base 2) of the cache line size, in bytes.  Processors prior to
-   SH3 have no actual cache, but they fetch code in chunks of 4 bytes.  */
-#define CACHE_LOG (TARGET_CACHE32 ? 5 : TARGET_SH3 ? 4 : 2)
+   SH2 have no actual cache, but they fetch code in chunks of 4 bytes.
+   The SH2/3 have 16 byte cache lines, and the SH4 has a 32 byte cache line */
+#define CACHE_LOG (TARGET_CACHE32 ? 5 : TARGET_SH2 ? 4 : 2)
 
 /* Allocation boundary (in *bits*) for the code of a function.
    32 bit alignment is faster, because instructions are always fetched as a