Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2008 02:10:01 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 133388 for review
Message-ID:  <200801160210.m0G2A1Lk091092@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133388

Change 133388 by imp@imp_lighthouse on 2008/01/16 02:09:01

	fix obvious typo in the dcache printing routine.
	
	Obtained from:	cavium

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/cpu.c#20 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/cpu.c#20 (text+ko) ====

@@ -243,15 +243,15 @@
     }
 
     printf("  L1 d-cache: ");
-    if (cpuinfo.l1.ic_linesize == 0) {
+    if (cpuinfo.l1.dc_linesize == 0) {
 	printf("disabled");
     } else {
-	if (cpuinfo.l1.ic_nways == 1) {
+	if (cpuinfo.l1.dc_nways == 1) {
 	    printf("direct-mapped with");
 	} else {
-	    printf ("%d ways of", cpuinfo.l1.ic_nways);
+	    printf ("%d ways of", cpuinfo.l1.dc_nways);
 	}
-	printf(" %d sets, %d bytes per line\n", cpuinfo.l1.ic_nsets, cpuinfo.l1.ic_linesize);
+	printf(" %d sets, %d bytes per line\n", cpuinfo.l1.dc_nsets, cpuinfo.l1.dc_linesize);
     }
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801160210.m0G2A1Lk091092>