Commit 6e8a0d11 authored by Paul Mundt's avatar Paul Mundt

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent a781d1e5
...@@ -75,16 +75,11 @@ static void __init expmask_init(void) ...@@ -75,16 +75,11 @@ static void __init expmask_init(void)
/* /*
* Future proofing. * Future proofing.
* *
* Disable support for slottable sleep instruction * Disable support for slottable sleep instruction, non-nop
* and non-nop instructions in the rte delay slot. * instructions in the rte delay slot, and associative writes to
* the memory-mapped cache array.
*/ */
expmask &= ~(EXPMASK_RTEDS | EXPMASK_BRDSSLP); expmask &= ~(EXPMASK_RTEDS | EXPMASK_BRDSSLP | EXPMASK_MMCAW);
/*
* Enable associative writes to the memory-mapped cache array
* until the cache flush ops have been rewritten.
*/
expmask |= EXPMASK_MMCAW;
__raw_writel(expmask, EXPMASK); __raw_writel(expmask, EXPMASK);
ctrl_barrier(); ctrl_barrier();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment