aboutsummaryrefslogtreecommitdiff
path: root/machine/fp_asm.S
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2016-12-06 15:49:59 -0800
committerAndrew Waterman <andrew@sifive.com>2016-12-06 15:49:59 -0800
commitf6b2274af4a91763ecdb94600d7d54d5f7f262b5 (patch)
tree0f4ad8f1df69ea97bb2626573c80854a1838cf53 /machine/fp_asm.S
parente5ed1d115c178b87807a9d7c966dbaa2b3d3a92e (diff)
downloadriscv-pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.zip
riscv-pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.gz
riscv-pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.bz2
avoid non-standard predefined macros
Diffstat (limited to 'machine/fp_asm.S')
-rw-r--r--machine/fp_asm.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/fp_asm.S b/machine/fp_asm.S
index a3e5ef4..cdbb151 100644
--- a/machine/fp_asm.S
+++ b/machine/fp_asm.S
@@ -8,7 +8,7 @@
#define get_f32(which) fmv.x.s a0, which; jr t0
#define put_f32(which) fmv.s.x which, a0; jr t0
-#ifdef __riscv64
+#if __riscv_xlen == 64
# define get_f64(which) fmv.x.d a0, which; jr t0
# define put_f64(which) fmv.d.x which, a0; jr t0
#else