Skip to content

Commit 97b3be1

Browse files
apoppleozbenh
authored andcommitted
powerpc/ppc476: Disable BTAC
This patch disables the branch target address CAM which under specific circumstances may cause the processor to skip execution of 1-4 instructions. This fixes IBM Erratum #47. Signed-off-by: Alistair Popple <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
1 parent 763fe0a commit 97b3be1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/powerpc/kernel/head_44x.S

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,10 +1210,12 @@ clear_utlb_entry:
12101210

12111211
/* We configure icbi to invalidate 128 bytes at a time since the
12121212
* current 32-bit kernel code isn't too happy with icache != dcache
1213-
* block size
1213+
* block size. We also disable the BTAC as this can cause errors
1214+
* in some circumstances (see IBM Erratum 47).
12141215
*/
12151216
mfspr r3,SPRN_CCR0
12161217
oris r3,r3,0x0020
1218+
ori r3,r3,0x0040
12171219
mtspr SPRN_CCR0,r3
12181220
isync
12191221

0 commit comments

Comments
 (0)