MIPS: math-emu: Emulate MIPSr6 sel.fmt instruction
authorPaul Burton <paul.burton@imgtec.com>
Thu, 21 Apr 2016 13:04:48 +0000 (14:04 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:02:22 +0000 (14:02 +0200)
commit4b820d95dc53c15e6e727da964430a3ed60e05ef
treeba3801074945ae606c2feb8f1c57a9ad0d562acd
parentb6d5c4eda7a771e72b3640500e026d72c4f64419
MIPS: math-emu: Emulate MIPSr6 sel.fmt instruction

Add support for emulating the MIPSr6 sel.fmt instruction, which was
previously missing from the FPU emulation code. This instruction selects
its result from 2 possible source registers, based upon bit 0 of the
destination register, and is valid only for S (single) & D (double) data
types.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Maciej W. Rozycki <macro@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13153/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/cp1emu.c