MIPS: OCTEON: Enable use of FPU
authorDavid Daney <david.daney@cavium.com>
Wed, 28 May 2014 21:52:04 +0000 (23:52 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 30 May 2014 19:01:09 +0000 (21:01 +0200)
commita36d8225bceba4b7be47ade34d175945f85cffbc
treee410a514298003ab96d3a10cf091c518a8a423c8
parentdadaa1c2c0eddc09d11d7494b040c3f331ecd98f
MIPS: OCTEON: Enable use of FPU

Some versions of the assembler will not assemble CFC1 for OCTEON, so
override the ISA for these.

Add r4k_fpu.o to handle low level FPU initialization.

Modify octeon_switch.S to save the FPU registers.  And include
r4k_switch.S to pick up more FPU support.

Get rid of "#define cpu_has_fpu 0"

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com>
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7006/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h
arch/mips/kernel/Makefile
arch/mips/kernel/branch.c
arch/mips/kernel/octeon_switch.S
arch/mips/kernel/r4k_switch.S
arch/mips/math-emu/cp1emu.c