]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: math-emu: Fix prefx detection and COP1X function field definition
authorDeng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Fri, 7 Mar 2014 01:05:27 +0000 (17:05 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 11 Mar 2014 22:10:55 +0000 (23:10 +0100)
commitd20348942efff518fd7ce3eb08e10d99eacc6eb8
tree7a205930a8ae780f2d04a47865dcb4d595a0d075
parent67703dae758a2c827d880470aa5d380f415698b7
MIPS: math-emu: Fix prefx detection and COP1X function field definition

When running applications which contain the instruction "prefx" on FPU-less
CPUs, a message "Illegal instruction" will be seen. This instruction is
supposed to be ignored by the FPU emulator. However, its current detection
and function field encoding are incorrect. This patch fix the issue.

Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Reviewed-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Reviewed-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: Steven.Hill@imgtec.com
Patchwork: https://patchwork.linux-mips.org/patch/6608/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/uapi/asm/inst.h
arch/mips/math-emu/cp1emu.c