projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
828a542
)
MIPS: mm: Fix definition of R6 cache instruction
author
Matt Redfearn
<matt.redfearn@imgtec.com>
Tue, 14 Jun 2016 13:59:38 +0000
(14:59 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Wed, 3 Aug 2016 07:01:48 +0000
(09:01 +0200)
Commit
a168b8f1cde6
("MIPS: mm: Add MIPS R6 instruction encodings") added
an incorrect definition of the redefined MIPSr6 cache instruction.
Executing any kernel code including this instuction results in a
reserved instruction exception and kernel panic.
Fix the instruction definition.
Fixes: a168b8f1cde6588ff7a67699fa11e01bc77a5ddd
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: <stable@vger.kernel.org> # 4.x-
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13663/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/uasm-mips.c
patch
|
blob
|
history
diff --git
a/arch/mips/mm/uasm-mips.c
b/arch/mips/mm/uasm-mips.c
index 9c2220a45189a6e954a597c05bb880f700b93801..45e3b8799ed0100954553a1ba74b79fb7224f4b6 100644
(file)
--- a/
arch/mips/mm/uasm-mips.c
+++ b/
arch/mips/mm/uasm-mips.c
@@
-65,7
+65,7
@@
static struct insn insn_table[] = {
#ifndef CONFIG_CPU_MIPSR6
{ insn_cache, M(cache_op, 0, 0, 0, 0, 0), RS | RT | SIMM },
#else
- { insn_cache, M6(
cache
_op, 0, 0, 0, cache6_op), RS | RT | SIMM9 },
+ { insn_cache, M6(
spec3
_op, 0, 0, 0, cache6_op), RS | RT | SIMM9 },
#endif
{ insn_daddiu, M(daddiu_op, 0, 0, 0, 0, 0), RS | RT | SIMM },
{ insn_daddu, M(spec_op, 0, 0, 0, 0, daddu_op), RS | RT | RD },