]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: r4kcache: Use correct base register for MIPS R6 cache flushes
authorMarkos Chandras <markos.chandras@imgtec.com>
Tue, 3 Mar 2015 18:48:47 +0000 (18:48 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 25 Mar 2015 12:48:11 +0000 (13:48 +0100)
commit34fca14bf3d3c0f09f84bf3283505996c99d277d
tree51db78293fe216a9cb9a5fdc077ac17c00f9ce8f
parent426a755b6dfd56289466667bc059909028e92725
MIPS: r4kcache: Use correct base register for MIPS R6 cache flushes

Commit 934c79231c1b("MIPS: asm: r4kcache: Add MIPS R6 cache unroll
functions") added support for MIPS R6 cache flushes but it used the
wrong base address register to perform the flushes so the same lines
were flushed over and over. Moreover, replace the "addiu" instructions
with LONG_ADDIU so the correct base address is calculated for 64-bit
cores.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Fixes: 934c79231c1b("MIPS: asm: r4kcache: Add MIPS R6 cache unroll functions")
Cc: linux-mips@linux-mips.org
Reviewed-by: Maciej W. Rozycki <macro@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/9384/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/r4kcache.h