aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-03-24 12:51:24 -0700
committerAndrew Waterman <andrew@sifive.com>2017-03-24 12:58:41 -0700
commit8aebc7e29009096e0c5bd2a3ab7bc31271647020 (patch)
tree3b9f29f7a93bde4bc4e8608c9f8b327baf9fa1fd
parentfd03c714d638d826bcff8e3c80c58a01ba39510d (diff)
downloadriscv-tests-8aebc7e29009096e0c5bd2a3ab7bc31271647020.zip
riscv-tests-8aebc7e29009096e0c5bd2a3ab7bc31271647020.tar.gz
riscv-tests-8aebc7e29009096e0c5bd2a3ab7bc31271647020.tar.bz2
Like tests, pass the benchmarks if XLEN disagrees
-rw-r--r--benchmarks/common/crt.S11
m---------env10
2 files changed, 11 insertions, 10 deletions
diff --git a/benchmarks/common/crt.S b/benchmarks/common/crt.S
index 38b963d..be03ebb 100644
--- a/benchmarks/common/crt.S
+++ b/benchmarks/common/crt.S
@@ -55,14 +55,15 @@ _start:
csrs mstatus, t0
# make sure XLEN agrees with compilation choice
- csrr t0, misa
+ li t0, 1
+ slli t0, t0, 31
#if __riscv_xlen == 64
- bltz t0, 1f
-#else
bgez t0, 1f
+#else
+ bltz t0, 1f
#endif
- li a0, 1234
- j tohost_exit
+ li a0, 1
+ sw a0, tohost, t0
1:
#ifdef __riscv_flen
diff --git a/env b/env
-Subproject 14cdc2888b1ad430c6f5c21b27ab8bd4ed13faa
+Subproject 3dc64058de56fbac3b793e20707739f0b985303