Skip to content

Commit 6e8a0d1

Browse files
committed
sh: Make associative cache writes fatal on all SH-4A parts.
Now that associative cache writes are no longer needed by the SH-4/SH-4A cache flush code, associative write support can be explicitly disabled for all SH-4A parts. This makes any associative write throw an exception, as this behaviour can not be assumed to exist on future parts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent a781d1e commit 6e8a0d1

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

‎arch/sh/kernel/cpu/init.c‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,11 @@ static void __init expmask_init(void)
7575
/*
7676
* Future proofing.
7777
*
78-
* Disable support for slottable sleep instruction
79-
* and non-nop instructions in the rte delay slot.
78+
* Disable support for slottable sleep instruction, non-nop
79+
* instructions in the rte delay slot, and associative writes to
80+
* the memory-mapped cache array.
8081
*/
81-
expmask &= ~(EXPMASK_RTEDS | EXPMASK_BRDSSLP);
82-
83-
/*
84-
* Enable associative writes to the memory-mapped cache array
85-
* until the cache flush ops have been rewritten.
86-
*/
87-
expmask |= EXPMASK_MMCAW;
82+
expmask &= ~(EXPMASK_RTEDS | EXPMASK_BRDSSLP | EXPMASK_MMCAW);
8883

8984
__raw_writel(expmask, EXPMASK);
9085
ctrl_barrier();

0 commit comments

Comments
 (0)