aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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