MIPS: math-emu: Add mfhc1 & mthc1 support.
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Thu, 7 Nov 2013 12:48:28 +0000 (12:48 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 13 Jan 2014 22:40:55 +0000 (23:40 +0100)
commit1ac944007bede6d6f934831959b0e2b65c82d291
treeda2b1745bd4c8cd447574e7bd9b44d220b0f2f4b
parent7e22e91102c6b9df7c4ae2168910e19d2bb14cd6
MIPS: math-emu: Add mfhc1 & mthc1 support.

This patch adds support for the mfhc1 & mthc1 instructions to the FPU
emulator. These instructions were introduced in release 2 of the MIPS32
& MIPS64 architectures and allow access to the most significant 32 bits
of a 64-bit FP register.

[ralf@linux-mips.org: Fix ifdef hell added by original patch.]

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6112/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/uapi/asm/inst.h
arch/mips/math-emu/cp1emu.c