From 56f46aa0f9688c87ce9ebd7658e19b884b018b6b Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 6 Dec 2016 17:04:14 -0800 Subject: avoid non-standard predefined macros --- benchmarks/common/crt.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmarks') 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 -- cgit v1.1