From 8aebc7e29009096e0c5bd2a3ab7bc31271647020 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 24 Mar 2017 12:51:24 -0700 Subject: Like tests, pass the benchmarks if XLEN disagrees --- benchmarks/common/crt.S | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'benchmarks/common') 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 -- cgit v1.1