From 607e24a5594950564876f13d5452875e90345384 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 23 Oct 1995 06:10:31 +0000 Subject: XXX is 4/300 really write-through? --- sys/arch/sparc/sparc/cpu.c | 1 - sys/arch/sparc/sparc/pmap.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/arch') 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 { -- cgit v1.2.3