projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1664574
)
MIPS: math-emu: Allow m{f,t}hc emulation on MIPS R6
author
Markos Chandras
<
[email protected]
>
Fri, 17 Jul 2015 09:36:03 +0000
(10:36 +0100)
committer
Ralf Baechle
<
[email protected]
>
Thu, 3 Sep 2015 10:07:43 +0000
(12:07 +0200)
The mfhc/mthc instructions are supported on MIPS R6 so emulate
them if needed.
Signed-off-by: Markos Chandras <
[email protected]
>
Cc: <
[email protected]
> # 4.0+
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/10737/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/math-emu/cp1emu.c
patch
|
blob
|
history
diff --git
a/arch/mips/math-emu/cp1emu.c
b/arch/mips/math-emu/cp1emu.c
index cd858953a78374b2d46f92201cb6ae55c32444ab..e78b1ae6dcdb7d9917080ecd1544ea1ded4fe8a7 100644
(file)
--- a/
arch/mips/math-emu/cp1emu.c
+++ b/
arch/mips/math-emu/cp1emu.c
@@
-1137,7
+1137,7
@@
emul:
break;
case mfhc_op:
- if (!cpu_has_mips_r2)
+ if (!cpu_has_mips_r2
_r6
)
goto sigill;
/* copregister rd -> gpr[rt] */
@@
-1148,7
+1148,7
@@
emul:
break;
case mthc_op:
- if (!cpu_has_mips_r2)
+ if (!cpu_has_mips_r2
_r6
)
goto sigill;
/* copregister rd <- gpr[rt] */