diff options
author | Andrew Waterman <andrew@sifive.com> | 2016-12-06 17:04:14 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2016-12-06 17:04:14 -0800 |
commit | 56f46aa0f9688c87ce9ebd7658e19b884b018b6b (patch) | |
tree | 516d33de0c78bab0968f8548f7223160d8bba6fb /benchmarks | |
parent | b68b39031a730ecc155ed87fba2ed5f111d0ab07 (diff) | |
download | riscv-tests-56f46aa0f9688c87ce9ebd7658e19b884b018b6b.zip riscv-tests-56f46aa0f9688c87ce9ebd7658e19b884b018b6b.tar.gz riscv-tests-56f46aa0f9688c87ce9ebd7658e19b884b018b6b.tar.bz2 |
avoid non-standard predefined macros
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/common/crt.S | 4 |
1 files changed, 2 insertions, 2 deletions
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 |