summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-06-13 03:17:00 +0000
committeradrian <adrian@FreeBSD.org>2016-06-13 03:17:00 +0000
commitb1cc7f99f953a302eb717869e77ac409cb7f6a79 (patch)
tree8d7972c00b31ec2fcb86bcd1586506a68be4808b /sys
parent92b2a48e222e331a7680b1fa0689c8ba78ac47fd (diff)
downloadFreeBSD-src-b1cc7f99f953a302eb717869e77ac409cb7f6a79.zip
FreeBSD-src-b1cc7f99f953a302eb717869e77ac409cb7f6a79.tar.gz
[mips] set hardfloat for fpu instruction generation for gcc/binutils 5.x
This allows -HEAD to be compiled again using the gcc-5 mips port compiler. Reviewed by: imp Approved by: re@
Diffstat (limited to 'sys')
-rw-r--r--sys/mips/mips/swtch.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/mips/swtch.S b/sys/mips/mips/swtch.S
index 056d1f0..2a0db8b 100644
--- a/sys/mips/mips/swtch.S
+++ b/sys/mips/mips/swtch.S
@@ -400,6 +400,7 @@ END(cpu_switch)
*
*----------------------------------------------------------------------------
*/
+.set hardfloat
LEAF(MipsSwitchFPState)
mfc0 t1, MIPS_COP_0_STATUS # Save old SR
li t0, MIPS_SR_COP_1_BIT # enable the coprocessor
OpenPOWER on IntegriCloud