aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1999-03-01 13:49:34 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>1999-03-01 13:49:34 +0000
commitb4d34be1f3b2b3aeda8dc00857e4603dd6a78d85 (patch)
tree599642dfc24a41c20fc179b711410ae75bf28706
parent1746404be27edcd34767c796d4fef006857d24f6 (diff)
downloadgcc-b4d34be1f3b2b3aeda8dc00857e4603dd6a78d85.zip
gcc-b4d34be1f3b2b3aeda8dc00857e4603dd6a78d85.tar.gz
gcc-b4d34be1f3b2b3aeda8dc00857e4603dd6a78d85.tar.bz2
From Toshiyasu Morita:
* sh.h (CACHE_LOG): SH2 has cache, too. From-SVN: r25515
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sh/sh.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 71bbb25..8dd6b0f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index 2541660..f8ae2c7 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -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