diff options
-rw-r--r-- | sys/arch/sparc/sparc/cpu.c | 1 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/pmap.c | 3 |
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 { |