summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-23 06:10:31 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-23 06:10:31 +0000
commit607e24a5594950564876f13d5452875e90345384 (patch)
tree10fd9a49e8354046042030cb72e079c66f0d019f /sys/arch
parent2c5013878ccdac69ddf1e16584b5b5c3dc449cfa (diff)
XXX is 4/300 really write-through?
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/sparc/cpu.c1
-rw-r--r--sys/arch/sparc/sparc/pmap.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/sparc/sparc/cpu.c b/sys/arch/sparc/sparc/cpu.c
index 43437db234b..a445aff07c3 100644
--- a/sys/arch/sparc/sparc/cpu.c
+++ b/sys/arch/sparc/sparc/cpu.c
@@ -188,7 +188,6 @@ cpu_attach(parent, dev, aux)
case SUN4_300:
sprintf(cpu_model, "SUN-4/300 series (%s FPU)", fpuname);
bug = 1;
- vactype = VAC_WRITETHROUGH;
cacheinfo.c_totalsize = 128*1024;
cacheinfo.c_hwflush = 0;
cacheinfo.c_linesize = 16;
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c
index 38c717eb532..5fdda8300ac 100644
--- a/sys/arch/sparc/sparc/pmap.c
+++ b/sys/arch/sparc/sparc/pmap.c
@@ -2862,8 +2862,7 @@ pmap_changeprot(pm, va, prot, wired)
* the latter check deals with a writethrough cache
* problem on the 4/300
*/
- if ((vactype==VAC_WRITEBACK ||
- (vactype==VAC_WRITETHROUGH && cputyp==CPU_SUN4)) &&
+ if (vactype == VAC_WRITEBACK &&
(tpte & (PG_U|PG_NC|PG_TYPE)) == (PG_U|PG_OBMEM))
cache_flush_page((int)va);
} else {