From: Andrew Waterman Date: Fri, 24 Mar 2017 19:51:24 +0000 (-0700) Subject: Like tests, pass the benchmarks if XLEN disagrees X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8aebc7e29009096e0c5bd2a3ab7bc31271647020;p=riscv-tests.git Like tests, pass the benchmarks if XLEN disagrees --- 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 index 14cdc28..3dc6405 160000 --- a/env +++ b/env @@ -1 +1 @@ -Subproject commit 14cdc2888b1ad430c6f5c21b27ab8bd4ed13faab +Subproject commit 3dc64058de56fbac3b793e20707739f0b985303c