aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJames Hogan <[email protected]>2015-01-30 15:40:20 +0000
committerRalf Baechle <[email protected]>2015-01-30 23:05:04 +0100
commitd76e9b9fc5de7e8fc4fd0e72a94e8c723929ffea (patch)
tree43dfb2bb75cc269a2170b6c7b0351b7a680db301 /tools
parent5e32033e14ca9c7f7341cb383f5a05699b0b5382 (diff)
MIPS: traps: Fix inline asm ctc1 missing .set hardfloat
Commit 842dfc11ea9a ("MIPS: Fix build with binutils 2.24.51+") in v3.18 enabled -msoft-float and sprinkled ".set hardfloat" where necessary to use FP instructions. However it missed enable_restore_fp_context() which since v3.17 does a ctc1 with inline assembly, causing the following assembler errors on Mentor's 2014.05 toolchain: {standard input}: Assembler messages: {standard input}:2913: Error: opcode not supported on this processor: mips32r2 (mips32r2) `ctc1 $2,$31' scripts/Makefile.build:257: recipe for target 'arch/mips/kernel/traps.o' failed Fix that to use the new write_32bit_cp1_register() macro so that ".set hardfloat" is automatically added when -msoft-float is in use. Fixes 842dfc11ea9a ("MIPS: Fix build with binutils 2.24.51+") Signed-off-by: James Hogan <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Paul Burton <[email protected]> Cc: [email protected] Cc: <[email protected]> # 3.18+, depends on "MIPS: mipsregs.h: Add write_32bit_cp1_register()" Patchwork: https://patchwork.linux-mips.org/patch/9173/ Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions