diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-03-24 12:51:24 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-03-24 12:58:41 -0700 |
commit | 8aebc7e29009096e0c5bd2a3ab7bc31271647020 (patch) | |
tree | 3b9f29f7a93bde4bc4e8608c9f8b327baf9fa1fd /benchmarks | |
parent | fd03c714d638d826bcff8e3c80c58a01ba39510d (diff) | |
download | riscv-tests-8aebc7e29009096e0c5bd2a3ab7bc31271647020.zip riscv-tests-8aebc7e29009096e0c5bd2a3ab7bc31271647020.tar.gz riscv-tests-8aebc7e29009096e0c5bd2a3ab7bc31271647020.tar.bz2 |
Like tests, pass the benchmarks if XLEN disagrees
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/common/crt.S | 11 |
1 files changed, 6 insertions, 5 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 |