shithub: riscv

Download patch

ref: 5d8300d2ebaaba3a648d25015cadd80ddd2d016e
parent: ce80c5029e3885836ac3077a2219093e251c4993
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Sep 17 12:34:30 EDT 2014

teg2: fix wrong l2 setshift address in wholecache() (from sources)

--- a/sys/src/9/teg2/cache.v7.s
+++ b/sys/src/9/teg2/cache.v7.s
@@ -164,7 +164,7 @@
 	MOVW	$(CACHECONF+4), R4	/* +4 = l1setsh */
 	CMP	$0, R8		/* cache == 1? */
 	ADD.NE	$(4*2), R3	/* no, assume l2: +8 = l2waysh */
-	ADD.NE	$(4*2), R3	/* +12 = l2setsh */
+	ADD.NE	$(4*2), R4	/* +12 = l2setsh */
 
 	MOVW	R14, R0		/* get R14's segment ... */
 	AND	$KSEGM, R0