summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-03-19 20:12:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-03-19 20:12:44 +0000
commit4ef10266dc7894a9794edf34e5e951f91fa03284 (patch)
treed37e3869a6397cf1060954fb170e3a0f11df4bc5
parent9449cc628efdb330a020a603f9332e0bc689d6ef (diff)
Default to writeback cache.
-rw-r--r--sys/arch/sh/sh/cache_sh4.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sh/sh/cache_sh4.c b/sys/arch/sh/sh/cache_sh4.c
index ace1e4317e0..5d4e37c3dba 100644
--- a/sys/arch/sh/sh/cache_sh4.c
+++ b/sys/arch/sh/sh/cache_sh4.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cache_sh4.c,v 1.2 2007/03/05 21:48:23 miod Exp $ */
+/* $OpenBSD: cache_sh4.c,v 1.3 2007/03/19 20:12:43 miod Exp $ */
/* $NetBSD: cache_sh4.c,v 1.15 2005/12/24 23:24:02 perry Exp $ */
/*-
@@ -112,6 +112,10 @@ sh4_cache_config(void)
#if defined(SH4_CACHE_DISABLE_DCACHE)
r &= ~SH4_CCR_OCE;
#endif
+#if !defined (SH4_CACHE_WT)
+#define SH4_CACHE_WB_U0_P0_P3
+#define SH4_CACHE_WB_P1
+#endif
#if defined(SH4_CACHE_WB_U0_P0_P3)
r &= ~SH4_CCR_WT;
#endif