Make dhrystone report correct-ish numbers
[riscv-tests.git] / benchmarks / common / crt.S
index 0c99c4a913df39a71c008ee1b9b38838500ff4f3..97b90d53dfb0d9a81e5c5cdbaa980a642a55e335 100644 (file)
@@ -131,6 +131,9 @@ _start:
   fmv.s.x f31,x0
 1:
 
+  # initialize global pointer
+  la gp, _gp
+
   la  tp, _end + 63
   and tp, tp, -64