Add _hard_float check in crt.S.
authorChristopher Celio <celio@eecs.berkeley.edu>
Wed, 1 Jul 2015 22:59:11 +0000 (15:59 -0700)
committerChristopher Celio <celio@eecs.berkeley.edu>
Wed, 1 Jul 2015 22:59:11 +0000 (15:59 -0700)
benchmarks/common/crt.S
env

index dc162287d127bc5748194881946e4fcbc64accdb..bd27f6f330235813f51241fdad9e38b85df06905 100644 (file)
@@ -86,6 +86,7 @@ _start:
   and t1, t0, t1
   beqz t1, 1f
 
+#ifdef __riscv_hard_float
   fssr    x0
   fmv.s.x f0, x0
   fmv.s.x f1, x0
@@ -119,6 +120,8 @@ _start:
   fmv.s.x f29,x0
   fmv.s.x f30,x0
   fmv.s.x f31,x0
+#endif
+
 1:
 
   # initialize global pointer
diff --git a/env b/env
index dac4ddd40078f31f4c2e766368c237eba84ef68c..c60e1a9e2f48f8c011a4967247a7618d42c53462 160000 (submodule)
--- a/env
+++ b/env
@@ -1 +1 @@
-Subproject commit dac4ddd40078f31f4c2e766368c237eba84ef68c
+Subproject commit c60e1a9e2f48f8c011a4967247a7618d42c53462