Author: jhb
Date: Mon Aug 21 21:48:24 2017
New Revision: 322772
URL: https://svnweb.freebsd.org/changeset/base/322772

Log:
  Enable hardfloat CPU instructions in the FP exception handler.
  
  This permits compiling with clang's integrated assembler.
  
  Sponsored by: DARPA / AFRL

Modified:
  head/sys/mips/mips/exception.S

Modified: head/sys/mips/mips/exception.S
==============================================================================
--- head/sys/mips/mips/exception.S      Mon Aug 21 20:27:45 2017        
(r322771)
+++ head/sys/mips/mips/exception.S      Mon Aug 21 21:48:24 2017        
(r322772)
@@ -1102,6 +1102,8 @@ END(MipsTLBMissException)
  *----------------------------------------------------------------------------
  */
 NESTED(MipsFPTrap, CALLFRAME_SIZ, ra)
+       .set push
+       .set hardfloat
        PTR_SUBU        sp, sp, CALLFRAME_SIZ
        mfc0    t0, MIPS_COP_0_STATUS
        HAZARD_DELAY
@@ -1201,6 +1203,7 @@ FPReturn:
        ITLBNOPFIX
        j       ra
        PTR_ADDU sp, sp, CALLFRAME_SIZ
+       .set pop
 END(MipsFPTrap)
 
 #ifndef INTRNG
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to