zynq: enable prefetch hints and drop-prefetch

This commit is contained in:
cinap_lenrek 2014-12-30 15:16:46 +01:00
parent 9f880e595c
commit ed294a65cb
2 changed files with 3 additions and 3 deletions

View file

@ -93,14 +93,14 @@ TEXT _virt(SB), $-4
MCR 15, 0, R0, C(7), C(5), 6
BL l1dclear(SB)
MRC 15, 0, R0, C(1), C(0), 1
ORR $(1|1<<6), R0
ORR $(1|2|1<<6), R0
MCR 15, 0, R0, C(1), C(0), 1
MRC 15, 0, R0, C(1), C(0), 0
ORR $(1<<12|1<<2), R0
MCR 15, 0, R0, C(1), C(0), 0
DSB
ISB
MOVW $(VMAP+0x30), R8
PUTC('9')

View file

@ -112,7 +112,7 @@ l2init(void)
l2[CTRL] &= ~1;
l2[TAGRAM] = l2[TAGRAM] & ~0x777 | 0x111;
l2[DATARAM] = l2[DATARAM] & ~0x777 | 0x121;
l2[PREFETCH] |= 3<<28;
l2[PREFETCH] |= 3<<28 | 1<<24;
l2[AUX] |= 3<<28 | 1<<20;
l2[INVWAY] = 0xff;
while((l2[INVPA] & 1) != 0)