Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Fix cacheinfo.c_nlines for sun4 and sun...
details: https://anonhg.NetBSD.org/src/rev/dbc1e12069ac
branches: trunk
changeset: 535068:dbc1e12069ac
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Aug 09 14:46:04 2002 +0000
description:
Fix cacheinfo.c_nlines for sun4 and sun4c machines.
(they are not used anyway..)
diffstat:
sys/arch/sparc/sparc/cpu.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r ea2ad221c6ce -r dbc1e12069ac sys/arch/sparc/sparc/cpu.c
--- a/sys/arch/sparc/sparc/cpu.c Fri Aug 09 14:19:10 2002 +0000
+++ b/sys/arch/sparc/sparc/cpu.c Fri Aug 09 14:46:04 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.128 2002/07/17 15:56:20 thorpej Exp $ */
+/* $NetBSD: cpu.c,v 1.129 2002/08/09 14:46:04 tsutsui Exp $ */
/*
* Copyright (c) 1996
@@ -883,7 +883,7 @@
ci->c_linesize = 16;
ci->c_l2linesize = 4;
ci->c_split = 0;
- ci->c_nlines = ci->c_totalsize << ci->c_l2linesize;
+ ci->c_nlines = ci->c_totalsize >> ci->c_l2linesize;
break;
case CPUTYP_4_300:
ci->c_vactype = VAC_WRITEBACK;
@@ -892,7 +892,7 @@
ci->c_linesize = 16;
ci->c_l2linesize = 4;
ci->c_split = 0;
- ci->c_nlines = ci->c_totalsize << ci->c_l2linesize;
+ ci->c_nlines = ci->c_totalsize >> ci->c_l2linesize;
sc->flags |= CPUFLG_SUN4CACHEBUG;
break;
case CPUTYP_4_400:
@@ -902,7 +902,7 @@
ci->c_linesize = 32;
ci->c_l2linesize = 5;
ci->c_split = 0;
- ci->c_nlines = ci->c_totalsize << ci->c_l2linesize;
+ ci->c_nlines = ci->c_totalsize >> ci->c_l2linesize;
break;
}
}
@@ -1032,7 +1032,7 @@
panic("bad cache line size %d", l);
ci->c_l2linesize = i;
ci->c_associativity = 1;
- ci->c_nlines = ci->c_totalsize << i;
+ ci->c_nlines = ci->c_totalsize >> i;
ci->c_vactype = VAC_WRITETHROUGH;
Home |
Main Index |
Thread Index |
Old Index