Skip to content

Commit

Permalink
Add/Fix missing bit of R4600 hit cacheop workaround.
Browse files Browse the repository at this point in the history
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Thiemo Seufer authored and Ralf Baechle committed Oct 29, 2005
1 parent 02fe2c9 commit 10a3dab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/mips/mm/c-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ static inline void local_r4k_flush_icache_range(void *args)
if (end - start > dcache_size) {
r4k_blast_dcache();
} else {
R4600_HIT_CACHEOP_WAR_IMPL;
addr = start & ~(dc_lsize - 1);
aend = (end - 1) & ~(dc_lsize - 1);

Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mm/pg-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static inline void build_cdex_p(void)
}

if (R4600_V2_HIT_CACHEOP_WAR && cpu_is_r4600_v2_x())
build_insn_word(0x8c200000); /* lw $zero, ($at) */
build_insn_word(0x3c01a000); /* lui $at, 0xa000 */

mi.c_format.opcode = cache_op;
mi.c_format.rs = 4; /* $a0 */
Expand Down

0 comments on commit 10a3dab

Please sign in to comment.