diff options
| author | pk <pk@NetBSD.org> | 1997-09-18 20:44:43 +0000 |
|---|---|---|
| committer | pk <pk@NetBSD.org> | 1997-09-18 20:44:43 +0000 |
| commit | bb3e7cdb987c32f0e9b08207a88c562eb3ed39b0 (patch) | |
| tree | 5cf7d1b6b2e342cbb582ca864c71c351b1d3f9d1 /sys | |
| parent | ef73834bdcf8d6e19cde0d93ebc1f135e7a628b1 (diff) | |
Fix viking/MXCC botch similar to pmap.c.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/sparc/sparc/iommu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc/sparc/iommu.c b/sys/arch/sparc/sparc/iommu.c index c3b2961d89c..f2431977221 100644 --- a/sys/arch/sparc/sparc/iommu.c +++ b/sys/arch/sparc/sparc/iommu.c @@ -1,4 +1,4 @@ -/* $NetBSD: iommu.c,v 1.13 1997/07/29 09:42:04 fair Exp $ */ +/* $NetBSD: iommu.c,v 1.14 1997/09/18 20:44:43 pk Exp $ */ /* * Copyright (c) 1996 @@ -194,7 +194,7 @@ iommu_attach(parent, self, aux) * * XXX: PGOFSET, NBPG assume same page size as SRMMU */ - if (cpuinfo.cpu_vers == 4 && cpuinfo.mxcc) { + if (cpuinfo.cpu_impl == 4 && cpuinfo.mxcc) { /* set MMU AC bit */ sta(SRMMU_PCR, ASI_SRMMU, ((mmupcrsave = lda(SRMMU_PCR, ASI_SRMMU)) | VIKING_PCR_AC)); @@ -210,7 +210,7 @@ iommu_attach(parent, self, aux) (tpte_p - &sc->sc_ptes[0])*NBPG + DVMA4M_BASE); *tpte_p = lda(pa, ASI_BYPASS); } - if (cpuinfo.cpu_vers == 4 && cpuinfo.mxcc) { + if (cpuinfo.cpu_impl == 4 && cpuinfo.mxcc) { /* restore mmu after bug-avoidance */ sta(SRMMU_PCR, ASI_SRMMU, mmupcrsave); } |
