mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 19:07:46 +00:00
MIPS: math-emu: Allow m{f,t}hc emulation on MIPS R6
The mfhc/mthc instructions are supported on MIPS R6 so emulate them if needed. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Cc: <stable@vger.kernel.org> # 4.0+ Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/10737/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
166457436e
commit
e8f80cc1a6
@ -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] */
|
||||
|
Loading…
Reference in New Issue
Block a user