aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/common/crt.S
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-05-01 00:56:39 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-05-01 00:56:39 -0700
commit4bead73f52ad5a43a5400179928aa0aa97b79b35 (patch)
tree934e3f19217faf3c118bf8ff533289cb0d56f37a /benchmarks/common/crt.S
parente9c88267da591b8b60d3b2e7bd790b6a01ab6ec5 (diff)
downloadriscv-tests-4bead73f52ad5a43a5400179928aa0aa97b79b35.zip
riscv-tests-4bead73f52ad5a43a5400179928aa0aa97b79b35.tar.gz
riscv-tests-4bead73f52ad5a43a5400179928aa0aa97b79b35.tar.bz2
Make dhrystone report correct-ish numbers
Diffstat (limited to 'benchmarks/common/crt.S')
-rw-r--r--benchmarks/common/crt.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmarks/common/crt.S b/benchmarks/common/crt.S
index 0c99c4a..97b90d5 100644
--- a/benchmarks/common/crt.S
+++ b/benchmarks/common/crt.S
@@ -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