X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=benchmarks%2Fcommon%2Fcrt.S;h=de1d7281d3296695b7f1df41330f6858110ae5db;hb=56f46aa0f9688c87ce9ebd7658e19b884b018b6b;hp=ea07099af31e393e44bfceabef4ac30311c9c829;hpb=b68b39031a730ecc155ed87fba2ed5f111d0ab07;p=riscv-tests.git diff --git a/benchmarks/common/crt.S b/benchmarks/common/crt.S index ea07099..de1d728 100644 --- a/benchmarks/common/crt.S +++ b/benchmarks/common/crt.S @@ -2,7 +2,7 @@ #include "encoding.h" -#ifdef __riscv64 +#if __riscv_xlen == 64 # define LREG ld # define SREG sd # define REGBYTES 8 @@ -56,7 +56,7 @@ _start: # make sure XLEN agrees with compilation choice csrr t0, misa -#ifdef __riscv64 +#if __riscv_xlen == 64 bltz t0, 1f #else bgez t0, 1f