]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite84ad48af04bfcb433d2dc306fc6d769f3e8c71e
treee410a514298003ab96d3a10cf091c518a8a423c8
parent2d0206104a2db9294b4a93b27bd30394d0373cf9
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