From 3c0e63a4c4fed78c8e1c3e895bcbdd2173f83928 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 21 Aug 2017 21:48:24 +0000 Subject: [PATCH] Enable hardfloat CPU instructions in the FP exception handler. This permits compiling with clang's integrated assembler. Sponsored by: DARPA / AFRL --- sys/mips/mips/exception.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/mips/mips/exception.S b/sys/mips/mips/exception.S index d47a2b37b8a..4e437267897 100644 --- a/sys/mips/mips/exception.S +++ b/sys/mips/mips/exception.S @@ -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